필터 지우기
필터 지우기

How do I save the output from a live script without saving the code?

조회 수: 23 (최근 30일)
Sohaib Ahmad
Sohaib Ahmad 2018년 3월 20일
답변: Trang Cao 2023년 4월 24일
Hello!
I have a matlab live script that includes snippets of code - but I'd like to save the results of the live script without saving the code. Is this possible?

답변 (2개)

Trang Cao
Trang Cao 2023년 4월 24일
I had the same question and then figured out the answer.
  1. Go to View tab, choose Hide code
  2. Go to Live Editor tab, export to PDF.

Priyank Sharma
Priyank Sharma 2018년 4월 3일
My understanding is that you are trying to save the output to the base work space. If that is so, you can use the eval function to do the work for you. There is no need to save the script.
  댓글 수: 4
Serge Boisse
Serge Boisse 2018년 10월 31일
편집: Serge Boisse 2018년 10월 31일
Yes! publish() is exactly what i meant. Have a look at "publish" and also "Output Preferences for Publishing" in the documentation. There is an "include code" option, so this is nice.
However, the "publish" tab is only available when you open a .m document, not .mlx So you need to save first your live script as .m, load the .m and publish it to pdf.
Stephen23
Stephen23 2018년 10월 31일
@Serge Boisse: you should put that as an answer.

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

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by