MATLAB Answers

Plot a signal in an interval of time

10 views (last 30 days)
Aly Khafagy
Aly Khafagy on 29 May 2020
Edited: KALYAN ACHARJYA on 29 May 2020
how do i plot this signal in specific interval from -2 to 2
Xnsum= transXn (:) ;

  0 Comments

Sign in to comment.

Answers (1)

KALYAN ACHARJYA
KALYAN ACHARJYA on 29 May 2020
Edited: KALYAN ACHARJYA on 29 May 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)

  0 Comments

Sign in to comment.

Tags