필터 지우기
필터 지우기

Save workspace to .pdf

조회 수: 22 (최근 30일)
Andrew Makar
Andrew Makar 2020년 8월 26일
답변: Alan Moses 2020년 8월 31일
Is it possible to save a workspace in MATLAB as a PDF instead of a ".mat" or ".m" file?

답변 (1개)

Alan Moses
Alan Moses 2020년 8월 31일
You can save your workspace as a PDF file by first saving it as a MATLAB file using matlab.io.saveVariablesToScript or Simulink.saveVars functions. The MATLAB file generated can be converted to PDF file using the publish function which publishes a PDF file in a new directory named 'html' that is automatically created. For example:
matlab.io.saveVariablesToScript('myVars.m')
publish('myVars.m','pdf')
or
Simulink.saveVars('MyVars');
publish('MyVars.m','pdf')
Hope this helps!

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by