can anybody explain the commented line of the code
Afficher commentaires plus anciens
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 commentaires
madhan ravi
le 13 Fév 2019
Are you asking the purpose of it or what the syntax does?
Nathan Mugge
le 6 Déc 2021
What the syntax does
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Vibration Analysis 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!