Effacer les filtres
Effacer les filtres

Executing part of the script from command line

6 vues (au cours des 30 derniers jours)
Orion
Orion le 29 Juil 2012
I am running the MATLAB on command window on a linux machine. I was wondering if there is any command that lets us run just part of a script. for instance, with a Windows OS, you would just select the part in the editor window and then hit F9. is there any way to do the same in nodesktop mode?
Further Info: the way I work with nodesktop: I have two command windows, matlab is running in one and script is in the other one.
Thanks

Réponse acceptée

Walter Roberson
Walter Roberson le 29 Juil 2012
There is nothing in that scenario that would allow you to start somewhere after the first line.
To stop early, dbstop at the first executable line after the last line you want executed.
Beyond that... copy the lines to a new script file and execute that.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by