Answered
Fundamental of power spectral density PSD?
There is only one sine wave in this signal. There are no harmonics. Fs = 150; t = 0:1/Fs:1; x = cos(2...

12 years ago | 1

Answered
sin wave with difference sampling frequency?
Simply change the increments at which the time vector is sampled. 100 Hz sampling frequency: Fs = 100; t = 0:1/Fs:1; ...

12 years ago | 2

| accepted

Answered
Using logical operators within if statement
You don't want an &, you want an or | um=input('um(Between 0 and 1) ='); if (um<0 || um>1) disp('En...

12 years ago | 1

| accepted

Answered
Variable with static type possible?
To get the equivalent of a static variable in MATLAB, use persistent. When you declare a variable to be persistent within a func...

12 years ago | 0

| accepted

Answered
How to interpret an answer given by the "regress" function
Your design matrix should be 60x5, not 60x4, you need a column of ones for the constant term, a0. So start by doing the follo...

12 years ago | 1

| accepted

Answered
Fundamental of power spectral density PSD?
The answer is you are only seeing one peak in your signal. When you obtain a two-sided (negative and positive frequencies) PSD e...

12 years ago | 1

Answered
Undefined function 'times' for input arguments of type 'struct'.
I think you need to show us how you are forming your variables m and c - is either one or both a structure array? They clearl...

12 years ago | 0

Answered
Fundamental of power spectral density PSD?
Are these two peaks harmonically related? In other words, is the second peak an integer multiple of the first peak. In that case...

12 years ago | 1

| accepted

Answered
Testing for Linear Dependence (Matrix Errors when running)
A rectangular matrix cannot have a true inverse. How about just A = [2 3 0; 1 2 0]; rref(A) To get the reduced row e...

12 years ago | 1

Answered
How to change CELL components value?
A = cell(2,1); A{1} = randn(100,1); A{2} = randn(100,1); A{1} = A{1}/2; A{2} = A{2}/2; Or if you ...

12 years ago | 1

| accepted

Answered
AI toolboxes in MATLAB
AI is a big area, so how are you defining what qualifies as an AI toolbox? For example: <http://www.mathworks.com/products...

12 years ago | 1

Answered
Splitting up a matrix into X sizes/ based on specified values in a matrix
Are the time instants just integers? If not, that may be why find() does not work depending on how you are using it. X = one...

12 years ago | 0

| accepted

Answered
How can I use wavelet thresholding with nondecimated 2D decomposition of an MR image ?
You want to use sw2dtool >>sw2dtool Interactively play with your denoising and then select File -> Generate MATLAB Co...

12 years ago | 0

| accepted

Answered
Three-level Daubechies wavelet transform?
Have you tried this using >>dw2dtool That will allow you to interactively do exactly what you want

12 years ago | 0

| accepted

Answered
how to make bandstop filter
You have the sampling frequency specified as 44100 Hz. Is that correct? If that is correct how can you have a stopband [299740,2...

12 years ago | 0

| accepted

Answered
I have designed triplet half-band filer bank. I have got the co-efficients. Can any one help me design wavelet using these co-efficients using MATLAB???
When you say triplet half-band filter bank are you talking about a frame filter bank with one lowpass and two highpass filters. ...

12 years ago | 0

| accepted

Answered
diary fuction is not working, what can i do ?
It seems you are trying to execute that command in a folder where you don't write permission. Can you cd to a folder where yo...

12 years ago | 1

Answered
How to combine the text from two edit text and making it as one text?
X= 'TR-13-01639(16)'; Y = '102489473-16*'; idx = find(X=='('); X(idx:end) = []; keyword = strcat(X,'...

12 years ago | 0

Answered
Matrix (Resultant from an Expression) Indexing
Yes A = randn(20,10); size(A,2) size(A,1) So N = size(A,2); Did you read the help?

12 years ago | 0

| accepted

Answered
problem with sum command
You must have a variable in your workspace called sum, which is a bad idea. Make sure that your program or script does not cr...

12 years ago | 2

Answered
How to increment a variable
How about just a = a+1; a = 1; x = zeros(10,1); for k = 1:10; x(a)= k^2; a = a+1; end Of course, you would nev...

12 years ago | 3

Answered
How to extract Sound Pressure Level[SPL] data from an audio file(*.wav)
You cannot do that unless you have some detailed information about how the .wav file was recorded. You need to know how to creat...

12 years ago | 0

Answered
How can I make a conditional statement when using variables?
I'm guessing from the error message you report that x is a vector, not a scalar. From the code snippet you show, both a and b ar...

12 years ago | 0

| accepted

Answered
plot sin function with sincommand
How about just using sinc() if you have the Signal Processing Toolbox. If not x = linspace(-5,5); y = sin(pi*x...

12 years ago | 0

| accepted

Answered
How to invert a 72x72 symbolic matrix?
What is the performance of linsolve() for symbolic expressions? I haven't tried it for such a big matrix, but have you tried tha...

12 years ago | 0

Answered
How to combine the text from two edit text and making it as one text?
Can you show us what your output X and Y look like? Have you tried strcat()? X = 'C:\temp'; Y = 'data' ...

12 years ago | 1

| accepted

Answered
Splitting a fouriertransform in low, middle and high frequency intervals
The key is to figure out the frequency spacing in the DFT, that uses simply what you are calling FFT = 2^nextpow2(L); a...

12 years ago | 0

| accepted

Answered
How to work on fprintf in fopen?
What is msg? That is the system-dependent error message returned by fopen. I'm assuming the value of txt is -1 meaning the fopen...

12 years ago | 0

Answered
find a basis and dimension for the subspace
V1 = [1;2;1;-1]; V2 = [3;1;0;5]; V3 = [0;5;3;-8]; V = [V1 V2 V3]; rank(X) The rank of the matrix is 2 mea...

12 years ago | 3

| accepted

Answered
i have a big matrix with dimension 303*14 i want compare every row of this matrix with one vector with dimension 1*14
I'm not sure I understand, you say you have a cell array: strcmp() does work element by element on a cell array. A = {'T...

12 years ago | 0

Load more