Réponse apportée
Using cmor1-1.5
Hi Kim, How are you attempting to do this: x = randn(1024,1); wtcoeffs = cwt(x,1:32,'cmor1-1.5'); Should work, ar...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
how to calculate power of a matrix
Are you just asking for the squared modulus (magnitude) of the complex-valued elements of a matrix? X = randn(5,5)+1i*rand...

plus de 13 ans il y a | 0

Réponse apportée
How to extract the dyadic wavelet coefficeints from the DWT (decimated) 'wavedec' function output
You can set the dwtmode to 'per' and then use detcoef() or appcoef() dwtmode('per') x = randn(1024,1); [C,L] = wav...

plus de 13 ans il y a | 0

Réponse apportée
adding gaussian noise to an image
You can use randn() X = ones(256,256)+randn(256,256); You have to consider the datatype of your image though to make it...

plus de 13 ans il y a | 0

Réponse apportée
how to use periodogram?
wavread() will return the sampling frequency. Then you input the sampling frequency into periodogram() (along with the other doc...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
FFT / PSD out of rpm vs amplitude data
If I understood your post correctly, you have amplitudes as a function of revolutions/minute. If you take the Fourier transform ...

plus de 13 ans il y a | 0

Réponse apportée
convert column vectors to 2D array
Also, you can use cat() x = randn(100,1); y = randn(100,1); z = cat(2,x,y);

plus de 13 ans il y a | 0

Réponse apportée
If time domian data is not gaussian Can we use pwelch function?
Hi Vinod, If the mean of your signal looks fairly constant over time and the variance does as well, then you can assume that you...

plus de 13 ans il y a | 0

Réponse apportée
create a matrix where the elements are the sums of the elements of an old matrix
You say matrix in your post, but then you give an example of a column vector (100x1). I'll assume you mean column vector. ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
how can i know the sampling rate, quantization and frequency of recorded wave file
You can return the sampling rate and number of bits as variables [data,fs,nbits] = wavread(file); If you want to find the...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
If time domian data is not gaussian Can we use pwelch function?
Yes, the question is more whether the time series is stationary, not whether the process is Gaussian.

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How do i create a loop for this expression?
One way: kk = ''; for ii = 1:5 kk = [kk num2str(ii)]; out = str2num(kk)*8+ii end Of course if you w...

plus de 13 ans il y a | 0

Réponse apportée
how to open the filename in thisstatement "filename = 'output.bmp'"
With imread? im = imread(filename); The folder containing output.bmp has to be on the MATLAB path.

plus de 13 ans il y a | 0

Réponse apportée
Labeling x-axis in bar function in a figure
Yes, just set(gca,'xticklabel',{'mean','std'})

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
I Have a time series data , containing time, position and error in three column , I want to get the power spectral density of the time series containg the error
I'll assume that X is your matrix with 3 columns and the 3rd column is the error vector. errvec = X(:,3); % if you have th...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
IIR filter from diff. equation
This is a lowpass filter: aLowpass = [1 -2 1]; bLowpass = [1 0 0 0 0 0 -2 0 0 0 0 0 1]; As you can see with: fvtoo...

plus de 13 ans il y a | 1

Réponse apportée
Error - not enough input arguments
x3 should be entered as a function handle. a=fminunc(@x3,2) Or in this case: a = fminunc(@(x) abs(x)^3,2);

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Error using ==> aviread at 76
You should look at this technical solution: <http://www.mathworks.com/support/solutions/en/data/1-186ZX/index.html?solution=1...

plus de 13 ans il y a | 0

Réponse apportée
How do you convert an array into a square matrix?
x = [1 2 3 4 5 6 7 8 9 10]; x = repmat(x,10,1);

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
prevent function from displaying output
Put a semicolon after delet when you call the function f = delet;

plus de 13 ans il y a | 1

Réponse apportée
Is EMLMEX in the student version of Matlab?
No, you cannot use Embedded Matlab for code generation or MEX file generation with the student version.

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
IIR filter from diff. equation
Perhaps you are not representing the system correctly in bode()? A = [1 -2 1]; B = [1 0 0 0 0 0 -2 0 0 0 0 0 1]; fvtool(...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
how to plot sine and cosine waves in one graph ?
It sounds like the OP wants this in one graph (not subplotted) t = 0:0.01:(2*pi); x = cos(t); y = sin(t); ...

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
how to represent the mathematical parameter in matlab?
Is this a question about a symbolic computation, or a numerical one? x = randn(100,1); % sum of x for elements 10 to 3...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
anyone suggest me a code for dct2() and blockproc()
Hi, You should have just continued the post that you started here: <http://www.mathworks.com/matlabcentral/answers/49323-how-...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
how to apply 8x8 dct on a image
Use dct2() and blockproc()

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
How to access the contents of inner cells in a cell??
x = cell(2,1); x{1} = cell(3,1); x{1}{1} = randn(3,1); Now to access x{1}{1} Note x{1}{2} % is empty

plus de 13 ans il y a | 0

Réponse apportée
how to access individual values form a matrix
You just access them by their index A(1), A(2), etc If the matrix is MxN, the linear indices are columnwise, in other wo...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
HOW TO APPLY A MEAN FILTER FOR 3x3
How about just: h = 1/3*ones(3,1); H = h*h'; % im be your image imfilt = filter2(H,im);

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Difference in Wavelet decompostion coefficients
wrcoef() gives the orthogonal projection of the signal onto the vector subspace (approximation or wavelet) at the given level. ...

plus de 13 ans il y a | 0

| A accepté

Charger plus