Azzera filtri
Azzera filtri

Save workspace to .pdf

22 visualizzazioni (ultimi 30 giorni)
Andrew Makar
Andrew Makar il 26 Ago 2020
Risposto: Alan Moses il 31 Ago 2020
Is it possible to save a workspace in MATLAB as a PDF instead of a ".mat" or ".m" file?

Risposte (1)

Alan Moses
Alan Moses il 31 Ago 2020
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!

Categorie

Scopri di più su File Operations in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by