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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 1

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 2

| aceptada

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

casi 14 años hace | 1

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 2

| aceptada

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 1

| aceptada

Respondida
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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 0

| aceptada

Cargar más