フィルターのクリア

Printing .m to pdf on Linux

7 ビュー (過去 30 日間)
Ave
Ave 2019 年 11 月 5 日
編集済み: Daniel M 2019 年 11 月 5 日
Hi there, does anyone know a way to print a .m file to pdf on linux?
On Ubuntu 19.10 with R2019B, selecting print just returns an error for no conigured printers. I don't have any physical printers, but I expected at least an option to print to PDF like other applications have. This doesn't seem to be something I can edit in printopt.m, but perhaps I'm wrong about that? I tried adding a system print to pdf in the GNOME printer settings to no avail as well.
Any tips?
~Ave
  2 件のコメント
Daniel M
Daniel M 2019 年 11 月 5 日
Ave
Ave 2019 年 11 月 5 日
This does exactly what I want, and more! Thanks!

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

回答 (1 件)

Daniel M
Daniel M 2019 年 11 月 5 日
編集済み: Daniel M 2019 年 11 月 5 日
publish('myscript.m','pdf');
It will publish any figure or anything that prints to the command line as well.

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by