Réponse apportée
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...

environ 12 ans il y a | 1

Réponse apportée
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; ...

environ 12 ans il y a | 2

| A accepté

Réponse apportée
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...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 12 ans il y a | 1

Réponse apportée
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...

environ 12 ans il y a | 0

Réponse apportée
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...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 12 ans il y a | 1

Réponse apportée
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 ...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 12 ans il y a | 1

Réponse apportée
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...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Three-level Daubechies wavelet transform?
Have you tried this using >>dw2dtool That will allow you to interactively do exactly what you want

environ 12 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
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. ...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 12 ans il y a | 1

Réponse apportée
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,'...

environ 12 ans il y a | 0

Réponse apportée
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?

environ 12 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 12 ans il y a | 2

Réponse apportée
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...

environ 12 ans il y a | 3

Réponse apportée
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...

environ 12 ans il y a | 0

Réponse apportée
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...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 12 ans il y a | 0

Réponse apportée
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' ...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 12 ans il y a | 0

Réponse apportée
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...

environ 12 ans il y a | 3

| A accepté

Réponse apportée
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...

environ 12 ans il y a | 0

Charger plus