필터 지우기
필터 지우기

Executing part of the script from command line

조회 수: 6 (최근 30일)
Orion
Orion 2012년 7월 29일
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

채택된 답변

Walter Roberson
Walter Roberson 2012년 7월 29일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by