Plotting a signal between 8 and 15 sec

2 ビュー (過去 30 日間)
Ruth Hognestad
Ruth Hognestad 2018 年 8 月 31 日
回答済み: M 2018 年 8 月 31 日
Hi I need help plotting a signal between 8 and 15 sec. The signal is 3001x1, is simulated for 30 seconds and has a sampling time of 10ms. I can plot the signal with plot(u), but I don't get the signal in the range I want.
Thanks for any suggestions.

回答 (1 件)

M
M 2018 年 8 月 31 日
What is the problem exactly?
You have your signal u 3001x1, with a sampling time of 10ms. It means that u(1) is the value of the signal at t=0s and u(3000) is the signal at t=30s. So u(800) is the value at time = 8 sec, and u(800:1500) is the value between time t=8 sec to 15 seconds.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by