Answered
comparing relevant elemnts of two matrix
I'll assume that " littel-equal " means "less than or equal to" a=[9 7 NaN; 6 3 8; 15 NaN 5; NaN 4 2]; b= [10,14,NaN;10,10...

13 years ago | 0

Answered
how to add salt &pepper,gaussian noise (in 3 db)in image in matlab
If you have the Image Processing Toolbox, see the help for imnoise.m

13 years ago | 0

Answered
How would you filter this data?
I think a wavelet technique would work well in this instance.

13 years ago | 0

Answered
How can I use the Matlab function ziegler() in m-file?
You need to save that file, zeigler.m, in a folder that is on the MATLAB path, or just add the folder you have the M-file saved ...

13 years ago | 0

| accepted

Answered
How to make bandpass filter?
OK, then you can do two filters. A highpass filter and a notch filter (I'll assume you have fdesign.notch) d = fdesign.hi...

13 years ago | 0

| accepted

Answered
How to make bandpass filter?
With a 5 MHz sampling rate and what you want, it's going to be a very expensive filter, do you really need to keep frequencies b...

13 years ago | 0

Answered
How to make bandpass filter?
You have to know your sampling frequency, but you can you use fdesign.bandpass Also when you specify the frequency of the noi...

13 years ago | 0

Answered
what does sin(pi*[-Fs:1/Fs:Fs] )mean?
It's just a sine, but I'm not sure why they have coded up that way. It has a period of 2 so depending on what Fs is you can tell...

13 years ago | 0

Answered
cutoff freq of butterworth filter
To convert from frequency in Hz to normalized frequency divide the desired cutoff frequency in Hz by 1/2 the sampling rate. ...

13 years ago | 2

| accepted

Answered
Why I am getting nans when calculating the PSD for a sequence of numbers?!!
Is there a NaN in your data? If you have a NaN in your data, that will create the output you describe. For example: x = r...

13 years ago | 0

Answered
Using Log in Matlab
Can you be more specific with a simple example, you won't get 3, you'll get 15 since you are doing 5*log10(A) So if A = ...

13 years ago | 0

Answered
butterworth residuals vs cutoff frequency
You can certainly subtract the filtered waveform from the original and plot the spectrum of that difference signal. For that you...

13 years ago | 0

| accepted

Answered
How can I convert the units of the y-axis into miliseconds^2/Hz in power spectral density analysis of an ECG signal?
The y-axis on a PSD estimate will not be in units of the time squared, it will be in amplitude squared per Hz, so for an ECG sig...

13 years ago | 0

| accepted

Answered
How to save a plot of a pulse to a matrix to load it whenever i want to see it
One thing you can do is save the figures as .fig files (MATLAB fig files) and then you can use hgload('filename.fig') ...

13 years ago | 0

Answered
What is the elegent way to replace every Nth column in a matrix with another column?
B = randn(10,10); % replace every 3rd column with x x = randn(10,1); N = 3; ...

13 years ago | 0

| accepted

Answered
smoothing filter, how to avoid initial zero value
One thing you can do is to compensate for the delay introduced by the smoothing filter. I'll create a noise signal x to illustra...

13 years ago | 0

Answered
make column in a matrix: 1,1,1,2,2,2,3,3,3 etc
One of many ways (requires Signal Processing Toolbox for upsample.m) x = (1:7)'; x = repmat(x,1,4); A = upsampl...

13 years ago | 0

Answered
How i use the command Butter?
You cannot use filtfilt unless your input vector is more than 3 times as long as your coefficient vectors (the order of your fil...

13 years ago | 0

| accepted

Answered
what is interpolated dft?
Yes, you just zero pad the input by providing the optional NFFT argument to fft() If you use an NFFT value that is greater th...

13 years ago | 0

| accepted

Answered
How to do FFT Analysis to EEG signals Using Matlab
I do not see the need for this line: psdest = psdperiodo.data /(size(psdperiodo.data,1)); All the normalization for the...

13 years ago | 0

| accepted

Answered
Normalizing correlation coefficients for sequences of unequal length without unnecessary zero padding
If you are estimating the autocorrelation of a random process or cross correlation of two wide sense stationary processes then y...

13 years ago | 0

| accepted

Answered
How to do FFT Analysis to EEG signals Using Matlab
The nonparametric PSD estimates in MATLAB like the periodogram and Welch estimator already "normalize" the result to create the ...

13 years ago | 0

Answered
How to do FFT Analysis to EEG signals Using Matlab
You should format your code when you post. Since you are using spectrum.welch, you should use the avgpower() method to calculat...

13 years ago | 0

Answered
running a mdl model from simulink example
You need to have the SimPowerSystems product installed to run the model. If you look at your in-product documentation, not the w...

13 years ago | 0

Answered
How i use the command Butter?
Nobody can answer how to choose the cutoff frequency for you. That depends on your filter design. Suppose I wanted to filter dat...

13 years ago | 0

Answered
Recursive filtering with given transfer function
I'll assume that your rational Z-transform above is correct. How did you use the above with filter? From the expression above, y...

13 years ago | 0

Answered
FFT and butterworth - Attenuation inside the passband
I don't think you need a filter to remove DC, just subtract the mean, or use detrend() to remove the best linear fit if there is...

13 years ago | 0

Answered
How to cut a matrix
Let A = [1 2 3 4 5; 6 7 8 9 0; 2 4 6 7 8]; B = A(:,3:end);

13 years ago | 3

| accepted

Answered
Probability density function plot in matlab using matlab command
If I store your data in the variable, x, then histfit(x,30,'normal'); produces a plot that shows a normal distribution is...

13 years ago | 3

Answered
Probability density function plot in matlab using matlab command
Do you have the Statistics Toolbox, if so, you can use histfit() x = randn(1,32768); histfit(x,30,'normal') Also, i...

13 years ago | 0

Load more