Answered
Error using ==> plot
Hi Kash, I think you need to form the complex-valued matrices out of the two DWT trees and then sum the squared magnitudes from ...

14 years ago | 0

| accepted

Answered
parameter must specify a logical value. What is a logical value?
a logical value would be x = logical(0); x = logical(1); or x = false; x = true; You do not wan...

14 years ago | 1

Answered
plot equation of plane
Which plane do you want to plot? For example, your P3 equation? syms x y z = 6*x+3*y+27; ezmesh(z)

14 years ago | 3

| accepted

Answered
calculating energy of an image
You can calculate the energy as follows x = rand(64,64,16); J = 1; [Faf, Fsf] = FSfarras; [af, sf] = dualf...

14 years ago | 0

| accepted

Answered
want to plot MSE for a given error
Assume x is one vector and y is another. you can think of x as your original and y the fit. x = randn(100,1); y = randn(...

14 years ago | 1

| accepted

Answered
up sampling a wave file in MATLAB
I assume by upsampling you mean inserting zeros to increase the sampling rate and applying the interpolation filter. Have you...

14 years ago | 0

Answered
How to separate matrix row?
A = [ 1 2; 1 2; 1 2]; A(:,1) = zeros(size(A,1),1); Or if you want to keep your original A B = zeros(size(A)); ...

14 years ago | 0

Answered
best fit
It seems you want to summarize the 6 values in each column of the matrix. How about just using mean()? x = randn(6,83430); ...

14 years ago | 0

Answered
how to get full descriptive knowledge about the demo given in matlab
Have you looked at the reference pages?

14 years ago | 0

Answered
Change linespec of a line using only the figure handle.
Can't you just edit plot from the figure window, then click on the line? Or click on the object and do: hco = gco; ...

14 years ago | 0

Answered
How to randomly select data out of a dataset?
One way if you have the Statistics Toolbox is to use randsample x = randn(1000,1); y = randsample(length(x),800); A...

14 years ago | 1

Answered
Need help in designing a filter which removes all 1 Hz frequencies.
I answered this in your other post. If your sampling frequency is 0.0333 Hz, then you cannot resolve 1 Hz.

14 years ago | 0

Answered
d = fdesign.lowpass('Fp,Fst,Ap,Ast',1,3,0.5,40,60);
d = fdesign.lowpass('Fp,Fst,Ap,Ast',1,3,0.5,40,60); # 1 is the passband frequency # 3 is the stopband frequency so the regi...

14 years ago | 1

| accepted

Answered
I want to plot PSD for my input data(meters)
Is your sampling interval in meters, or are you really saying that your measured variable is in meters? I'm assuming you jus...

14 years ago | 0

Answered
User associated with a license
You should contact MathWorks for any issues related to licensing.

14 years ago | 0

Answered
NEED to design a FIR LPF with cuff frequency at 1 Hz
The problem is that if you are really sampling only every 30 seconds, then you cannot accurately reproduce data at 1 Hz. If ...

14 years ago | 0

Answered
Unequal p-values when using tcdf and regstats
That is because the pvalue 5.1918e-06 is for a two-tailed hypothesis test. 1-tcdf(a_regstat.tstat.t(2),13) is only giv...

14 years ago | 0

| accepted

Answered
NEED to design a FIR LPF with cuff frequency at 1 Hz
Nobody can tell you the answer to this question if you do not tell us your sampling frequency. Solve for Wn in the following ...

14 years ago | 0

Answered
Need help in designing a filter which removes all 1 Hz frequencies.
There are many ways. You have not told us your sampling frequency. Let me assume it is 60-Hz. d = fdesign.lowpass('Fp,Fst,...

14 years ago | 0

| accepted

Answered
How to add 'AWGN' noise to a filtered data stream?
Use randn(). Add a vector the same size to your filtered data. Multiply the randn() vector by the standard deviation to give...

14 years ago | 0

Answered
filter coefficients
The unit step should be treated in your DSP book. For a sequence, the unit step sequence is the sequence which is 1 for n>=0 ...

14 years ago | 1

Answered
maths behind functions
Hi Tom, freqz.m does have an open implementation. So if you edit the M-file, freqz.m, you can see the code. The bulk of the work...

14 years ago | 0

| accepted

Answered
Normalize to unit norm
If you want to normalize a vector to have unit L2 norm. x = randn(100,1); x = x./norm(x,2); norm(x,2)

14 years ago | 1

| accepted

Answered
Error while storing matrix in a cell
Just do: imfcomponents{epoch} =IMF; For example: imfcomponents = cell(1799,1); IMF = randn(1000,5); ep...

14 years ago | 0

| accepted

Answered
discrete fourier transform by matlab
x = [10 9 1 5 0 8 4]; xdft = fft(x); plot(abs(xdft)) A better example would be something like: Fs = 1000; ...

14 years ago | 0

| accepted

Answered
How to form a periodogram?
Do you have the Signal Processing Toolbox? See periodogram >>doc periodogram If not, you can use fft()

14 years ago | 0

Answered
Random noise vs. White/Gaussian noise
rand() is a MATLAB random number generator. It generates random variables that follow a uniform probability distribution. randn(...

14 years ago | 0

| accepted

Answered
Regsrding for loop with array
for nn = 1:8 if(any(A==nn)), disp('hi'); else disp('bye'); end end Obviously, replace disp('hi...

14 years ago | 0

| accepted

Answered
Error using function "gensim"
You have to specify a sample time of -1 or an integer greater than or equal to 1. For example: gensim(net,'SampleTime',2...

14 years ago | 1

Answered
how to convert or import c file in matlab
See <http://www.mathworks.com/help/techdoc/matlab_external/f23224.html>

14 years ago | 0

| accepted

Load more