How to Publish matlab outout and code in pdf.

165 次查看(过去 30 天)
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

请先登录,再进行评论。

更多回答(4 个)

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

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

laurent jalabert
laurent jalabert 2020-6-4

sujit
sujit 2024-3-26
computing average marks of a student?

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by