Create a PDF document from Matlab?

Hi guys,
With results calculated and plotted in matlab, I would love to generate a beautiful print-friendly PDF which pops open?
Is this a possibility?
Thanks!

回答 (2 件)

Ahmet Cecen
Ahmet Cecen 2016 年 3 月 4 日

3 投票

publish('myscript.m','pdf');
For reference:

9 件のコメント

A
A 2016 年 3 月 4 日
But that only publishes the script itself... right?
Ahmet Cecen
Ahmet Cecen 2016 年 3 月 4 日
It will publish any figure or anything that prints to the command line as well.
A
A 2016 年 3 月 4 日
Is there a way to remove the "Published by Matlab" at the end of the published document?
Thanks
Ahmet Cecen
Ahmet Cecen 2016 年 3 月 4 日
None that I am aware of, other than using a pdf editor and removing it manually.
A
A 2016 年 3 月 4 日
Is there a way I can edit the publish function itself?
Walter Roberson
Walter Roberson 2016 年 3 月 4 日
If you are using Academic or Home or Student license, then Mathworks watermarks are mandatory. If you are using a Professional / Commercial license then there might be a way around it (not that I know what the way is.)
Image Analyst
Image Analyst 2016 年 3 月 4 日
"using a pdf editor and removing it manually." <= perhaps if you're using Windows and a PDF editor smart enough to know ActiveX you could control it from MATLAB to "automatically" find a text string and change or delete it.
A
A 2016 年 3 月 5 日
編集済み: A 2016 年 3 月 5 日
Is there not a way for me to manually edit or change the way the Publish function works? And just remove that bit where it adds that watermark?
Or is there any other way to create a customized PDF output of my figure with text and other things?
Thanks
Thanks
Ahmet Cecen
Ahmet Cecen 2016 年 3 月 5 日
Here is another very round about and much harder way of doing it as you seem to be sincerly hating advertising for MATLAB.
1) Download and Install Jupyter notebook and Python.
2) Either install the Jupyter MATLAB connector or use the official MATLAB engine for Python.
3) Write your script in Jupyter, and then you can compile it as a PDF without the watermarks.

サインインしてコメントする。

kajin
kajin 2024 年 10 月 20 日

0 投票

εημλζφδμωξ how can write in matlab

1 件のコメント

Walter Roberson
Walter Roberson 2024 年 10 月 20 日
You can write that as
thisline = 'εημλζφδμωξ';
You can, for example,
text(0.5, 0.4, thisline, 'interpreter', 'none')
But if you need latex then you would have to use something like
thislinelatex = '$\varepsilon\eta\mu\lambda\zeta\varphi\delta\mu\omega\xi$';
text(0.5, 0.5, thislinelatex, 'interpreter', 'latex')

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeIntegration with Online Platforms についてさらに検索

タグ

質問済み:

A
A
2016 年 3 月 4 日

コメント済み:

2024 年 10 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by