Beantwortet
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...

etwa 12 Jahre vor | 1

Beantwortet
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; ...

etwa 12 Jahre vor | 2

| akzeptiert

Beantwortet
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...

etwa 12 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 12 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 12 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 12 Jahre vor | 1

Beantwortet
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...

etwa 12 Jahre vor | 0

Beantwortet
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...

etwa 12 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 12 Jahre vor | 1

Beantwortet
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 ...

etwa 12 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 12 Jahre vor | 1

Beantwortet
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...

etwa 12 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 12 Jahre vor | 0

| akzeptiert

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

etwa 12 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 12 Jahre vor | 0

| akzeptiert

Beantwortet
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. ...

etwa 12 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 12 Jahre vor | 1

Beantwortet
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,'...

etwa 12 Jahre vor | 0

Beantwortet
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?

etwa 12 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 12 Jahre vor | 2

Beantwortet
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...

etwa 12 Jahre vor | 3

Beantwortet
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...

etwa 12 Jahre vor | 0

Beantwortet
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...

etwa 12 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 12 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 12 Jahre vor | 0

Beantwortet
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' ...

etwa 12 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 12 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 12 Jahre vor | 0

Beantwortet
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...

etwa 12 Jahre vor | 3

| akzeptiert

Beantwortet
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...

etwa 12 Jahre vor | 0

Mehr laden