Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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

plus de 13 ans il y a | 0

Réponse apportée
How would you filter this data?
I think a wavelet technique would work well in this instance.

plus de 13 ans il y a | 0

Réponse apportée
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 ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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. ...

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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 = ...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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') ...

plus de 13 ans il y a | 0

Réponse apportée
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; ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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);

plus de 13 ans il y a | 3

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 3

Réponse apportée
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...

plus de 13 ans il y a | 0

Charger plus