필터 지우기
필터 지우기

How to read text block from live script?

조회 수: 2 (최근 30일)
Balázs Dura-Kovács
Balázs Dura-Kovács 2021년 7월 14일
댓글: Balázs Dura-Kovács 2021년 7월 15일
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
Balázs Dura-Kovács 2021년 7월 15일
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