Error: Live Editor Run Section

15 visualizaciones (últimos 30 días)
Jiawei Gong
Jiawei Gong el 2 de Feb. de 2020
Editada: Walter Roberson el 25 de Feb. de 2022
My scirpt has multiple sections. I intentially leave a few lines incomplete for demo purpose. When I run Section One, the error massage pops up in Section Two ( I hit "Run Section Capture2.JPG" in Section One ! ). It seems before the compiler ran a particular section, it worked through the entire live editor script. If there is any errors, it refuses to run a section.
In short, how to run one section in live editor when errors present in other sections?

Respuestas (2)

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi el 5 de Feb. de 2020
To know the reason why this is not working you could refer to the following link
If you want to evaluate a part of the code, you can select the respective part and press F9 (Evaluate Selection).
  1 comentario
Marilee Nugent
Marilee Nugent el 8 de En. de 2021
This is not an acceptable change to matlab!

Iniciar sesión para comentar.


Maria Lazzaroni
Maria Lazzaroni el 25 de Feb. de 2022
I get this error when I run: "run section" from the editor tab:
Error using builtin
Must be a text scalar.
Error in matlab.internal.editor.eval.TempFolder/get.CurrentFolder
Error in matlab.internal.editor.eval.TempFolder/getFolderOnPath
Error in matlab.internal.editor.eval.TmpFilePath.get
Error in matlab.internal.editor.evaluateCode
even if I don't have any error in the selected section and elsewhere in the entire script.
Thank you

Categorías

Más información sobre Live Scripts and Functions en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by