Filter löschen
Filter löschen

Executing part of the script from command line

6 Ansichten (letzte 30 Tage)
Orion
Orion am 29 Jul. 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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 29 Jul. 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.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by