Plot a signal in an interval of time

5 ビュー (過去 30 日間)
Aly Khafagy
Aly Khafagy 2020 年 5 月 29 日
編集済み: KALYAN ACHARJYA 2020 年 5 月 29 日
how do i plot this signal in specific interval from -2 to 2
Xnsum= transXn (:) ;

回答 (1 件)

KALYAN ACHARJYA
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)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by