Hi all, I want help regarding loops in MATLAB, such that each iteration take values from a data set with the step size of 5? Which loop is most suitable?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi all, I want help regarding loops in MATLAB, such that each iteration take values from a data set with the step size of 5? Which loop is most suitable?
Please share some sample code.
0 件のコメント
採用された回答
Bhaskar R
2019 年 11 月 1 日
For step size of 5
values = 1:5:n; % n is the required length of your data
Refer the documenations on loops and colon operations
Hope helps you
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!