How to read text block from live script?

5 次查看(过去 30 天)
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?

回答(1 个)

Cris LaPierre
Cris LaPierre 2021-7-15
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 个评论
Balázs Dura-Kovács
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 String 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by