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

2 Ansichten (letzte 30 Tage)
Kelvin Viroja
Kelvin Viroja am 22 Aug. 2016
Kommentiert: Ben am 26 Aug. 2016
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...

Akzeptierte Antwort

Guillaume
Guillaume am 26 Aug. 2016
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.

Weitere Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 22 Aug. 2016
Use a for loop
  4 Kommentare
Ben
Ben am 26 Aug. 2016
Alternately, type
help for
in the command line.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by