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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 0

Answered
how to use periodogram?
wavread() will return the sampling frequency. Then you input the sampling frequency into periodogram() (along with the other doc...

13 years ago | 0

| accepted

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

13 years ago | 0

Answered
convert column vectors to 2D array
Also, you can use cat() x = randn(100,1); y = randn(100,1); z = cat(2,x,y);

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 0

| accepted

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

13 years ago | 1

| accepted

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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 0

Answered
Labeling x-axis in bar function in a figure
Yes, just set(gca,'xticklabel',{'mean','std'})

13 years ago | 0

| accepted

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

13 years ago | 0

| accepted

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

13 years ago | 1

Answered
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);

13 years ago | 0

| accepted

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

13 years ago | 0

Answered
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);

13 years ago | 2

| accepted

Answered
prevent function from displaying output
Put a semicolon after delet when you call the function f = delet;

13 years ago | 1

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

13 years ago | 0

| accepted

Answered
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(...

13 years ago | 1

| accepted

Answered
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); ...

13 years ago | 2

| accepted

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

13 years ago | 1

| accepted

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

13 years ago | 1

| accepted

Answered
how to apply 8x8 dct on a image
Use dct2() and blockproc()

13 years ago | 1

| accepted

Answered
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

13 years ago | 0

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

13 years ago | 0

| accepted

Answered
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);

13 years ago | 1

| accepted

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

13 years ago | 0

| accepted

Load more