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

2 visualizaciones (últimos 30 días)
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...

Respuesta aceptada

Guillaume
Guillaume el 26 de Ag. de 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.

Más respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 22 de Ag. de 2016
Use a for loop
  4 comentarios
Ben
Ben el 26 de Ag. de 2016
Alternately, type
help for
in the command line.

Iniciar sesión para comentar.

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by