run code section in nodesktop mode

3 Ansichten (letzte 30 Tage)
Leo Simon
Leo Simon am 16 Sep. 2018
Beantwortet: Leo Simon am 17 Sep. 2018
Title says it all. I always run matlab with the -nodesktop flag. I've just learned how to run a code section from within the IDE environment. Is it possible to do the same in nodesktop mode?
Here's an MWE
a = myFunction(y)
%%Code section
a = 4
disp(a)
Since myFunction hasn't been defined, this program snippit will crash unless it is run starting from the %%'s
Thanks!
Leo

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 17 Sep. 2018
No, you cannot do that in nodesktop mode.

Weitere Antworten (1)

Leo Simon
Leo Simon am 17 Sep. 2018
Figured as much. A pity though, it would be enormously helpful, and a great enhancement, for those of us who despise desktop mode.

Kategorien

Mehr zu Entering Commands 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