How to plot this signal?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Abdullah Alasfour
le 19 Juil 2023
Commenté : Abdullah Alasfour
le 19 Juil 2023
dt= 0.0001;
t = 0:dt:10;
ht= abs( (1/2*pi*j*t)*( exp(j*1460*pi*t) - exp(j*1450*pi*t)) );
plot(t,ht)
title(' plotting h(t)')
xlabel(' Time')
ylabel(' h(t)')
grid on
I want to plot this signal in Octave or Matlab, but it dosen't work, and I don't know why it dosen't plot.
0 commentaires
Réponse acceptée
Adam Danz
le 19 Juil 2023
Modifié(e) : Adam Danz
le 19 Juil 2023
ht= abs( (1/2*pi*j*t).*( exp(j*1460*pi*t) - exp(j*1450*pi*t)) );
% Add this ----------^
".*" is element-wise multiplication.
"*" is matrix multiplication and requires size-agreement between the two values you are multiplying.
3 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Waveform Generation dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!