Borrar filtros
Borrar filtros

Cell-mode options in command line

3 visualizaciones (últimos 30 días)
Orion
Orion el 19 de Ag. de 2014
Respondida: Joseph Cheng el 19 de Ag. de 2014
Are the cell mode options available in command line? I want to run a cell of a script from linux command line. while I can do it in GUI with Run-Section button (or Ctrl+Enter) I don't know how that's doable from the command line. Can we tell MATLAB to just run a specific part of a script (i.e. lines:10-20)? Thanks

Respuestas (1)

Joseph Cheng
Joseph Cheng el 19 de Ag. de 2014
I do not think that is possible as matlab doesn't have "goto" type statements and cells cannot be named. What can be done is for that section of lines 10-20 create seperate script to run that and replace lines 10-20 with eval('new_seperate_script') such that in the normal course of the main script it'll still perform lines 10-20 but you can call lines 10-20 on its own. (not sure if eval() is needed to call the script.

Categorías

Más información sobre Logical en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by