Save workspace to .pdf
43 ビュー (過去 30 日間)
古いコメントを表示
Is it possible to save a workspace in MATLAB as a PDF instead of a ".mat" or ".m" file?
0 件のコメント
回答 (1 件)
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!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で File Operations についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!