Answered
how noverlap be estimated for 75% percent overlap
You should specify the noverlap on the segments of your time data, not on the value of zero-padding you may or may not use for t...

13 years ago | 0

| accepted

Answered
2D Shannon Wavelet Decomposition
Hi Claire, Currently there is no 2D CWT implementation in the Wavelet Toolbox. The Shannon wavelet is a sinc in time so it does ...

13 years ago | 0

Answered
how to covert a mx1 matrix into mxm matrix ?
X = randn(10,1); X = repmat(X,1,10); The above repeats the column vector, X, as the remaining m-1 columns of the matrix.

13 years ago | 0

Answered
Error in using waverec2
You add noise to the image, then denoise in the wavelet domain, then reconstruct. Like this: load sinsin; Y = X +...

13 years ago | 0

| accepted

Answered
Error in using waverec2
Yes, but you don't need to use anything other than the C,S vectors load woman; [C,S] = wavedec2(X,2,'haar'); Xnew = wave...

13 years ago | 0

Answered
Error in using waverec2
Why do you expect that after you have added noise to the coefficients and then inverted the wavelet transform that you would obt...

13 years ago | 0

Answered
How to perform wavelet decomposition HPF and LPF on image separately
If you want to generate projections onto the wavelet subspaces similar to the one onto the approximation subspace you have above...

13 years ago | 0

Answered
how i can do sub-sampling for an image with factor 4
Do you want to downsample along the row dimension, along the column dimension, or both? X = randn(24,24); % Along row o...

13 years ago | 0

Answered
How to evaluate pdf for data containing NaN?
Why not just remove the NaNs? y = x(~isnan(x));

13 years ago | 0

Answered
Computer Vision System Toolbox not installed.
If you are using an academic license from your university, check with your local MATLAB administrator to see if the Computer Vis...

13 years ago | 0

Answered
Matlab coding for downsampling..............
If you have the Signal Processing Toolbox, you can use downsample() to simply downsample without lowpass filtering. Or use decim...

13 years ago | 2

| accepted

Answered
trying to write matlab code for Frobenius norm of an mxn matrix
Why not just use: norm(X,'fro') For example: X = randn(8,8); norm(X,'fro')

13 years ago | 2

Answered
how to get status of matlab.?
waitbar() is certainly an option. Please see Loren's blog here: <http://blogs.mathworks.com/loren/2007/08/01/monitoring-progr...

13 years ago | 0

Answered
Easy way to multiplying standard basis
You can just do I = eye(5); Each column of I is a standard basis vector Then, idx = [3 4]; Is = I(:,idx(1)...

13 years ago | 0

Answered
Easy way to multiplying standard basis
I agree with the comment above that you should provide an example because it's not clear what the size of your problem is or how...

13 years ago | 0

Answered
Why do I get a phase = 0 when I add a constant to a sinusoidal wave?
That should not happen Fs = 1000; t = 0:1/Fs:1-1/Fs; x = 2+cos(2*pi*100*t-pi/4); xdft = fft(x); % now look at the DF...

13 years ago | 0

| accepted

Answered
Computing summation in matlab
A = ones(144,40); B = sum(A(:)); or B = sum(sum(A));

13 years ago | 0

Answered
Delete columns of matrices in a cell array
B = cellfun(@(x) x(:,[1 3]),A,'uni',0); or C = cellfun(@(x) x(:,1:2:end),A,'uni',0);

13 years ago | 1

| accepted

Answered
IFFT operation on the vector
As long as you do not zero pad, you should get back the original vector without using any scaling factor. x = randn(10,1);...

13 years ago | 0

| accepted

Answered
Quantile function - different values in different versions of Matlab
I get the answer 5.4 in both R2011b and in R2012b. I'm not sure why you are getting 5 in R2011b. Perhaps you are using a non-Mat...

13 years ago | 0

| accepted

Answered
Experiment noise data (mnoise) which follow a normal distribution with mean 0 and standard deviation of 0.024
If you have the Statistics Toolbox, then x = -0.1:1e-4:0.1; y = normpdf(x,0,0.024); plot(x,y) If not x = -0.1:1e...

13 years ago | 0

Answered
Experiment noise data (mnoise) which follow a normal distribution with mean 0 and standard deviation of 0.024
You have to distinguish between generating random numbers (data) from some distribution and the probability density function. Th...

13 years ago | 0

Answered
Experiment noise data (mnoise) which follow a normal distribution with mean 0 and standard deviation of 0.024
Are you sure you have to use the rand() command and not the randn() function? normpdf() is not for generating random numbers....

13 years ago | 0

| accepted

Answered
Why do my amplitude become wrong when I vary the frequency from int to double?
It does not go "crazy", it only gets the amplitude wrong for the frequency f = 10.5 and this is problem I explained to you in th...

13 years ago | 0

Answered
Why is the FFT of a constant returns 0 for the angle?
The DFT of a single constant, or a constant vector is only going to give a nonzero discrete Fourier transform coefficient at 0 f...

13 years ago | 0

| accepted

Answered
How can I repeat each element of a vector different times and store them in a new vector
You can get this from the file exchange. <http://www.mathworks.com/matlabcentral/fileexchange/6436-rude-a-pedestrian-run-leng...

13 years ago | 3

| accepted

Answered
adjusting the time interval of "For" loop
You can put a pause() in the loop for ii = 1:10 fprintf('Hi\n'); pause(10); end I've also seen reports that j...

13 years ago | 2

| accepted

Answered
fft, problem in determining sampling frequency
Azzi is correct in his characterization of the default x-axis. The values that you are getting with your code: A = abs(fft(t...

13 years ago | 1

Answered
Getting the amplitude back from FFT, how to ?
By getting back do you mean finding the information in the Fourier domain? You have to know which DFT bin contains the frequency...

13 years ago | 1

Answered
Getting the magnitude of FFT of a sine wave
You should not zero pad here because as is your frequency of 10 Hz falls directly on a DFT bin. A =1; t = 0:0.01:1-0.01; ...

13 years ago | 0

Load more