Answered
how to see the frequency response of difference equation
Hi, that's because your graphs are showing the frequency response over [-pi,pi). You can use the 'whole' option in freqz() ...

14 years ago | 0

Answered
how to see the frequency response of difference equation
Hi, here you go. If you want to visualize the magnitude: fvtool([1 -1],[1 0.9]); If you want the complex-valued response: ...

14 years ago | 0

Answered
Multiple Power Spectral Density spectra on one plot
Hi Andy, sorry now I understand. You can do this: % I'll just create an example Fs = 44100; t = 0:1/Fs:1-1/Fs; ...

14 years ago | 0

| accepted

Answered
Multiple Power Spectral Density spectra on one plot
Hi Andy, from the code you have shown above, your sampling frequency is 1 kHz. That means your spectrum is periodic with a perio...

14 years ago | 0

Answered
Wavelet Packet Decomposition filter specification
Hi John, yes the filter I gave you above matches exactly. What you have to realize is that Wavelet Toolbox multiplies the orthog...

14 years ago | 0

| accepted

Answered
Wavelet Packet Decomposition filter specification
In what sense do you say they're different? You may be confusing the way the Wavelet Toolbox refers to db#. The Wavelet Toolbox ...

14 years ago | 0

Answered
Wavelet Packet Decomposition filter specification
Hi, John, you have your own orthogonal or biorthogonal filters? Then, yes, you can add them to the toolbox with wavemngr() and ...

14 years ago | 0

Answered
plot3
Hi Lisa, To use plot3, you must have your time (position) and scale vectors as matrices because the CWT coefficients are in a ma...

14 years ago | 0

| accepted

Answered
Image Processing Toolbox Problems
Hi Brandon, Can you use any of the functions in Image? If not, are you working in a networked configuration where you have to c...

14 years ago | 2

| accepted

Answered
Power Spectral Density of a Signal in decibels
If you want to do the above with just fft() xdft = fft(x); % even length x psdest = abs(xdft(1:length(xdft)/2+1...

14 years ago | 1

Answered
Help with for loops
x = input('Enter a integer:\n'); y = randperm(x); fprintf('%d\n',y); Why are you trying to put it in to a for loop? ...

14 years ago | 0

Answered
Power Spectral Density of a Signal in decibels
Do you have the Signal Processing Toolbox? Fs = 1e3; t = 0:.001:1-0.001; x = cos(2*pi*100*t)+randn(size(t)); plot(...

14 years ago | 0

| accepted

Answered
Checking greater numbers
x = randn(4,4); Y = x(:,4)-x(:,2); if (length(Y(Y>0))>2) disp('C4 greater than C2'); elseif (lengt...

14 years ago | 0

Answered
Help with for loops
x = input('Enter your number\n'); randperm(x)

14 years ago | 0

| accepted

Answered
plot3
Hi Lisa, If I remember correctly you are using your own CWT algorithm, not MATLAB's cwt() or cwtft(). Is that correct? Are you c...

14 years ago | 0

Answered
LMS ALGORITHM to implement an adaptative filter
What version of MATLAB are you using? Do you have the DSP System Toolbox, see the help adaptfilt.lms

14 years ago | 0

| accepted

Answered
About fx awgn()
Hi, if you use 'measured', the signal power is sigpower = norm(sig,2)^2/length(sig); The L2 norm squared divided by th...

14 years ago | 0

Answered
0.41==0.4+1*0.01 is False but 0.31==0.3+1*0.01 is True??
Hi Zhizheng, <http://www.mathworks.com/matlabcentral/answers/69-why-does-1-2-3-1-3-not-equal-zero>

14 years ago | 0

Answered
convolution
Hi Priya, this implements bandpass filtering on an image. If you have the Image Processing Toolbox, do: h = [-1 1; 1 1]; f...

14 years ago | 0

Answered
array index of minimum value of a matrix
X = randn(10,10); [minval,ind] = min(X(:)); [I,J] = ind2sub([size(X,1) size(X,2)],ind);

14 years ago | 1

| accepted

Answered
sftool
Hi Zahra, No, sftool did not exist in MATLAB version 7.1. sftool was introduced in R2009a. In the most recent version of MATLA...

14 years ago | 0

| accepted

Answered
??? Attempted to access G(2); index out of bounds because numel(G)=1.
Hi, You should format your code so that people can read it. Your problem is that you have G as a scalar: R=2.4; P=.1; e...

14 years ago | 0

Answered
Plot of Probability Density function in MATLAB
Are you sure that you need a discrete PDF? You have not specified that your time series takes on values only in a discrete set, ...

14 years ago | 4

| accepted

Answered
Copying data
X = randn(2,2,2000); Y = X(:,:,1:1000); Y copies the first 1000 elements of X along the 3rd dimension.

14 years ago | 0

| accepted

Answered
spectral interpolation of the function in matlab
Hi Feruz, just pad the fft(), that interpolates the DFT. Fs = 1024; t = 0:1/Fs:(1000*(1/1024))-(1/1024); x = cos(2*pi*100...

14 years ago | 0

Answered
Two Dimensional filters
You can construct a 1-D 4th order FIR filter and then create a 2-D separable filter out of that. That is one possibility. ...

14 years ago | 0

Answered
why checking correlation in square series?
I'm guessing because correlation in the squared returns indicates correlation in the process variance. And that would indicate t...

14 years ago | 0

Answered
Room Impulse Respone
Is this it? <http://recherche.ircam.fr/pub/dafx11/Papers/17_e.pdf>

14 years ago | 0

Answered
Why xcorr 'coef' is used by correlation coefficients?
Hi Brian, that is because you have fewer and fewer terms that enter the autocorrelation sum as the lag increases. The normalizat...

14 years ago | 0

Answered
Why xcorr 'coef' is used by correlation coefficients?
Hi Brian, 'coeff' is helpful because it gives you a convenient scale to interpret the results. It's the same reason why correlat...

14 years ago | 0

Load more