필터 지우기
필터 지우기

How to restart the some portion of script for number of times ?

조회 수: 1 (최근 30일)
Kelvin Viroja
Kelvin Viroja 2016년 8월 22일
댓글: Ben 2016년 8월 26일
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...

채택된 답변

Guillaume
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
Azzi Abdelmalek 2016년 8월 22일
Use a for loop
  댓글 수: 4
Ben
Ben 2016년 8월 26일
Alternately, type
help for
in the command line.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by