How can I use data from BODE plot and use it on a MATLAB figure window using System Identification Toolbox 7.4.3 (R2011b) ?
Afficher commentaires plus anciens
I use the following data and MATLAB functions to plot the PSD from the input data:
xn = rand(3001, 1); % Input signal
n = 3001;
NFFT = 2^nextpow2(n)+3;
Ts = 0.001;
Fs = 1/Ts; % Sample Frequency
h = spectrum.welch('Hann',NFFT/2,0.67);
Hpsd=psd(h,xn,'Fs',Fs,'ConfLevel',0.95);
plot(Hpsd); % works fine
% Now I would like to edit data plotted as below
H=(10.^(Hpsd/20))^2;
plot(H)
I am getting an error from last two lines in my code.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Analyze Data dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!