MATLAB Answers

How to Publish matlab outout and code in pdf.

3.433 views (last 30 days)
Hello, How i can publish matlab output and code ".m file" into pdf format.
Thanks

  0 Comments

Sign in to comment.

Accepted Answer

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

  27 Comments

Muhammad Ramzan
Muhammad Ramzan on 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 on 8 Sep 2018
t=1:256;
just suppress the output by putting semicolon(;)

Sign in to comment.

More Answers (3)

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


Tags

Community Treasure Hunt

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

Start Hunting!

Translated by