cut function and plot
14 ビュー (過去 30 日間)
古いコメントを表示
hello,
assuming I have the following code and I only want it to plot sin from the 10th value to the 20th value (there are 21 values), how do I do this?
x=0:.1:2
f=sin(x)
plot(f)
thank you for the support!
0 件のコメント
回答 (1 件)
Cris LaPierre
2019 年 4 月 20 日
plot(f(10:20))
If you would like to understand more, I highly recommend going through MATLAB Onramp. Chapter 5 address how to select subsets of your data.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!