can anybody explain the commented line of the code
Mostra commenti meno recenti
fs = 512;
X = [-2 1 -3 5 -1 3 -4 4 -2];
lX = length(X)-1;
Y = -diff(X)/2.*cos(pi*(0:1/fs:1-1/fs)') + (X(1:lX)+X(2:lX+1))/2;
% Y = [Y(:);X(end)];
plot(0:lX,X,'o',0:1/fs:lX,Y)
2 Commenti
madhan ravi
il 13 Feb 2019
Are you asking the purpose of it or what the syntax does?
Nathan Mugge
il 6 Dic 2021
What the syntax does
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Vibration Analysis in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!