필터 지우기
필터 지우기

How do I go between plain scripts (.m) and live scripts (.mlx)?

조회 수: 158 (최근 30일)
I would like to convert my Live Editor files to ordinary script files and vice versa, how do I do that?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2023년 1월 18일
편집: MathWorks Support Team 2023년 1월 20일
Use the following following conversion steps:
  • Plain to Live: “Open as Live Script” from Current Folder Browser or document tab
  • Live to Plain: “Save as…” and select “MATLAB Code (*.m)” Please also note that in MATLAB R2022a 'export' was introduced to go from MLX to M: https://mathworks.com/help/matlab/ref/export.html
  댓글 수: 2
Baptiste Ottino
Baptiste Ottino 2017년 8월 7일
Hi John, Hi Sarang,
It is perfectly possible to go between the two formats using the following internal functions (2016b, maybe even 2016a):
From mlx to m:
doc matlab.internal.richeditor.openAndConvert
From m to mlx:
doc matlab.internal.richeditor.openAndSave
I know I'm late on the topic, but I found out by pure luck after countless hours of research, and I hope it will help someone. Best regards.
Walter Roberson
Walter Roberson 2018년 1월 29일
Thanks, Baptiste, thanks Sharon.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Baptiste Ottino
Baptiste Ottino 2017년 8월 7일
Alternatively, use the command lines:
From mlx to m:
doc matlab.internal.richeditor.openAndConvert
From m to mlx:
doc matlab.internal.richeditor.openAndSave

카테고리

Help CenterFile Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by