How to restart the some portion of script for number of times ?
2 次查看(过去 30 天)
显示 更早的评论
I want to restart my some portion of script for number of times. Script is basically input-math-disp type code... Is there any loop or function to do so ? Please help...thx HAVE A GOOD DAY...
0 个评论
采纳的回答
Guillaume
2016-8-26
Even better than a loop (or in combination). Extract the portion of script that is repeated into a function that you then call from your script.
更多回答(1 个)
Azzi Abdelmalek
2016-8-22
Use a for loop
另请参阅
类别
在 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!