How to Publish matlab outout and code in pdf.

607 ビュー (過去 30 日間)
Muhammad Ramzan
Muhammad Ramzan 2018 年 9 月 8 日
回答済み: sujit 2024 年 3 月 26 日 2:32
Hello, How i can publish matlab output and code ".m file" into pdf format.
Thanks
  1 件のコメント
Pratyay Sengupta
Pratyay Sengupta 2021 年 6 月 2 日
I have a MATLAB code which generates a .txt file. Now I want to publish the code and the output text in a pdf format. Is it possible?
Currently I am able to publish only the code in the pdf format, but not the output text with it.

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

採用された回答

madhan ravi
madhan ravi 2018 年 9 月 8 日
編集済み: madhan ravi 2018 年 9 月 8 日
Try this :
publish('myfile.m','pdf')
Remark: The default file format is .html
Read the link below for better understanding:
  27 件のコメント
Muhammad Ramzan
Muhammad Ramzan 2018 年 9 月 8 日
Hello @ madhan ravi. Thanks for the help. can you please help
syms x
f =x.^2
fplot(f)
t = 1: 256
how i can ply. publish graph and not the output of
t = 1: 256
thanks
madhan ravi
madhan ravi 2018 年 9 月 8 日
t=1:256;
just suppress the output by putting semicolon(;)

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

その他の回答 (4 件)

Alan Hernandez Ramirez
Alan Hernandez Ramirez 2020 年 2 月 4 日
bruh
dont use publish('myfile.m','pdf') if youre using the matlab online version
it crashed my computer opening so many figue pages hahahaha
  3 件のコメント
Scott Simmons
Scott Simmons 2020 年 6 月 4 日
Same
KARI WEISS
KARI WEISS 2020 年 9 月 15 日
same question

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


Walter Roberson
Walter Roberson 2018 年 9 月 8 日
"You specify the output format and location on the Publish settings pane. "
  1 件のコメント
madhan ravi
madhan ravi 2018 年 9 月 8 日
+1 @sir Walter advanced thinking.

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


laurent jalabert
laurent jalabert 2020 年 6 月 4 日

sujit
sujit 2024 年 3 月 26 日 2:32
computing average marks of a student?

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by