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!