フィルターのクリア

Is there a way to see the code within a Live Editor script (.mlx) without running the code?

63 ビュー (過去 30 日間)
Christine Lo
Christine Lo 2017 年 12 月 17 日
コメント済み: Tahariet Sharon 2024 年 4 月 1 日 5:45
Hi, I have spent ages writing some code using Live Editor and at the last time I ran a section, it stalled. I forced quit Matlab and since then have been unable to open the script. I can see the top part of the script but then it says 'loading' and will not let me scroll down to see the rest of the code. An error box also pops up. Is there a way to open the script to copy and paste the code into a normal .m file? I am desperate not to loose the code as I'm new to MATLAB and it has taken me a long time to write it.

回答 (1 件)

Amy
Amy 2017 年 12 月 19 日
編集済み: Amy 2017 年 12 月 19 日
Hi Christine,
I'm sorry to hear you're having this issue. Since the .mlx file format is an extension of the zip file format, you should be able to rename your .mlx file as a .zip file and then look at the metadata for the file (e.g. rename 'myLiveScript.mlx' to 'myLiveScript.zip'). In the zip archive, your code should be in a file called 'document.xml'. There's some additional information in this MATLAB Answers post.
Also - which version of MATLAB are you using? Do you have access to another version to see if you can open the live script in that version? Are you able to share the file that's causing this issue?

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by