Plot a signal in an interval of time

2 vues (au cours des 30 derniers jours)
Aly Khafagy
Aly Khafagy le 29 Mai 2020
how do i plot this signal in specific interval from -2 to 2
Xnsum= transXn (:) ;

Réponses (1)

KALYAN ACHARJYA
KALYAN ACHARJYA le 29 Mai 2020
Modifié(e) : KALYAN ACHARJYA le 29 Mai 2020
If you already have the sata ranges transXn, then you can extract only those data points having >-2 and <2
Xnsum=transXn(transXn>=-2 & transXn<=2);
plot(Xnsum);
If NOT, defined signal in the range and plot
signal=-2:01:2;
plot(signal)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by