How to read text block from live script?

Does Matlab have functions to parse an mlx file, or parse the current open live script?
This is what I would like to do:
  1. Create a text block in a livescript
  2. Read the contents of that text block to a string variable within the same live script
Is something like this possible?

Respuestas (1)

Cris LaPierre
Cris LaPierre el 15 de Jul. de 2021

0 votos

To the best of my knowledge, this is not possible. One workaround may be to use an edit field in one of your code blocks.

1 comentario

Balázs Dura-Kovács
Balázs Dura-Kovács el 15 de Jul. de 2021
Thanks you. I was aware of edit fields, but you can't enter multiline text that way – this is the limitation I was trying to get around.

Iniciar sesión para comentar.

Categorías

Más información sobre Live Scripts and Functions en Centro de ayuda y File Exchange.

Productos

Versión

R2021a

Etiquetas

Preguntada:

el 14 de Jul. de 2021

Comentada:

el 15 de Jul. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by