Azzera filtri
Azzera filtri

Executing part of the script from command line

6 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Walter Roberson
Walter Roberson il 29 Lug 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.

Più risposte (0)

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by