MATLAB Answers

How to Publish matlab outout and code in pdf.

조회 수: 1,296(최근 30일)
Hello, How i can publish matlab output and code ".m file" into pdf format.
Thanks

  댓글 수: 0

Sign in to comment.

채택된 답변

madhan ravi
madhan ravi 8 Sep 2018
편집: madhan ravi 8 Sep 2018
Try this :
publish('myfile.m','pdf')
Remark: The default file format is .html
Read the link below for better understanding:

  댓글 수: 27

표시 이전 댓글 수: 24
Muhammad Ramzan
Muhammad Ramzan 8 Sep 2018
I have voted.
Muhammad Ramzan
Muhammad Ramzan 8 Sep 2018
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 8 Sep 2018
t=1:256;
just suppress the output by putting semicolon(;)

Sign in to comment.

추가 답변(3개)

Walter Roberson
Walter Roberson 8 Sep 2018
"You specify the output format and location on the Publish settings pane. "

  댓글 수: 1

madhan ravi
madhan ravi 8 Sep 2018
+1 @sir Walter advanced thinking.

Sign in to comment.


Alan Hernandez Ramirez
bruh
dont use publish('myfile.m','pdf') if youre using the matlab online version
it crashed my computer opening so many figue pages hahahaha

  댓글 수: 2

Manuela Eguakun
Manuela Eguakun 8 Feb 2020
How do you publish then if you use the online version of matlab?
Scott Simmons
Scott Simmons 4 Jun 2020
Same

Sign in to comment.


태그


Translated by