Answered
Input argument "y" is undefined.
I have no problem running this code: yo=15; tspan=[0:1:4]; [t,y]=ode45(@trombe11,tspan,yo); plot(t,y) Make sure th...

13 years ago | 0

Answered
Determining the maximum value of a function between a certain range.
Presumably you have your data in a vector in the MATLAB workspace. Since you know the correspondence between indices in your vec...

13 years ago | 0

Answered
msresample error message: 'the point coordinates are not sequenced in strict monotonic order'
Which version of Matlab are you using? Am I not able to reproduce this error, but out of curiousity, why are you setting the ran...

13 years ago | 0

Answered
Returning coordinates from a plot function
Hi Trent, max() will return the index also and from that index, you can get the maximum frequency from the frequency vector that...

14 years ago | 0

| accepted

Answered
Radar - CFAR Threshold and Probabilities (Noise and Swerling)
Hi, I think you maybe confusing the term "white" with Gaussian. In terms of the Rayleigh distribution and Swerling models, th...

14 years ago | 0

Answered
Normal Distributions: Standard Deviation from Statistics Toolbox vs Standard Deviation computed using std(data)?
I'm not sure exactly what you're saying here. histfit() calls fitdist to fit the normal distribution. mu = 10; sigm...

14 years ago | 0

Answered
Why does spectral phase from the fft of gaussian pulse shows sawteeth?
I don't think there is a problem, I think if you plot the following subplot(211) plot(frequency,abs(spectrum)) subplo...

14 years ago | 0

| accepted

Answered
need a help with code for breaking a signal in diffrent wavelets
If you have the Wavelet Toolbox, there are many possibilities. You need to determine which "flavor" of wavelet transform is most...

14 years ago | 1

| accepted

Answered
running m file from command window
Just save your function MyBisect.m in a folder that either already is on the Matlab path, or save it in a folder, and then add t...

14 years ago | 1

Answered
Simulink Singular Value Decomposition (SVD) Bug?
It's not a bug, the difference you see is simply the signs on the elements of u are the opposite, but that is also true for the ...

14 years ago | 2

| accepted

Answered
FFT example on MATLAB help
Both Honglei and Rick have given you good responses. If you want the magnitudes recovered from the DFT to equal the time domain ...

14 years ago | 0

Answered
diff of order n around a point x0
Do you have the Symbolic Toolbox and an expression for your function? syms t x = cos(2*t); y = diff(x,2) subs(y,0)...

14 years ago | 1

| accepted

Answered
interp1 yields NaN for two signals interpolation of the same sampling frequency
I think you have the wrong idea about interpolation here. interp1 assumes that X1 has been sampled at a lower rate than X2. So t...

14 years ago | 1

| accepted

Answered
conversion of P-file into m-file
No, you need the original Matlab code

14 years ago | 0

Answered
extract and change fundamental frequency
You have not told us what the sampling frequency is of the data, but I doubt you are going to get satisfactory results using the...

14 years ago | 0

Answered
erasing particular rows of a vector
indices = find(A==0); indices = [indices; indices+1] A(indices) = [];

14 years ago | 0

| accepted

Answered
Area of a Spectrum
Hi Lisa, If you have the Signal Processing Toolbox, you can use the avgpower() method of a spectrum object. For example: ...

14 years ago | 1

Answered
A simple question about undefined function error
Have you defined this variable inside the function? Having the variable in your MATLAB workspace is not sufficient. You could...

14 years ago | 0

Answered
Daubechies filters: Frequency response
Hi Lorena, you have to determine the equivalent filter at each level of the wavelet tree. As a simple example, I'll show you how...

14 years ago | 1

| accepted

Answered
how to implement a fast filter algorithm
I would try using filtfilt.m instead of filter() followed by your other code to do zerophase filtering. Replace: yfilt1 =...

14 years ago | 0

Answered
Where can I find the documentation in MATLAB
<http://www.mathworks.com/help/techdoc/matlab_prog/f0-42649.html>

14 years ago | 0

| accepted

Answered
spectral coherence between several time series
I'll assume you really want to add Gaussian noise and not uniform noise to the data. y = A.*sin(2*pi*1/T*t); Data1 = y...

14 years ago | 0

| accepted

Answered
spectral coherence between several time series
You want to use mscohere.m to compute the magnitude squared coherence between two time series

14 years ago | 0

Answered
Why am I getting a warning in "mafdr" when using my list of p-values?
Does this work for you? [fdr,qvalues] = mafdr(pvalues,'lambda',0.15);

14 years ago | 0

Answered
Why am I getting a warning in "mafdr" when using my list of p-values?
Hi, that is apparently a bug in the bootstrapchooser helper function. Do you have access to the R2012b prerelease version of MAT...

14 years ago | 0

| accepted

Answered
Magnitude response of Chebsev filter for Type1
You have not given us your desired peak-to-peak ripple or passband edge frequency or sampling frequency, but the general idea is...

14 years ago | 0

Answered
What is the power magnitude in FFT?
Hi Roser, "power" is basicially magnitude squared. If you are trying to construct a power spectral density estimate, the units a...

14 years ago | 0

Answered
wavelet threshold select ddencmp
Hi ddencmp only returns thresholds so there is nothing "soft" or "hard" about it. When you actually denoise the images using wde...

14 years ago | 0

Answered
What does the matlab code in steps 2 and 3 mean?
M is a 3-D matrix. M(:,:,1) = Hphi; Means set the first "page" of the 3rd dimension equal to the output of Heaviside with...

14 years ago | 0

Answered
Small variation in amplitude
You can amplitude modulate the different sections. For example, I'll amplitude modulate from 1 to 3 seconds in the following ...

14 years ago | 0

| accepted

Load more