Plot a signal in an interval of time
5 次查看(过去 30 天)
显示 更早的评论
how do i plot this signal in specific interval from -2 to 2
Xnsum= transXn (:) ;
0 个评论
回答(1 个)
KALYAN ACHARJYA
2020-5-29
编辑:KALYAN ACHARJYA
2020-5-29
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!