How to Publish matlab outout and code in pdf.

172 vues (au cours des 30 derniers jours)
Muhammad Ramzan
Muhammad Ramzan le 8 Sep 2018
Réponse apportée : sujit le 26 Mar 2024
Hello, How i can publish matlab output and code ".m file" into pdf format.
Thanks
  1 commentaire
Pratyay Sengupta
Pratyay Sengupta le 2 Juin 2021
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.

Connectez-vous pour commenter.

Réponse acceptée

madhan ravi
madhan ravi le 8 Sep 2018
Modifié(e) : madhan ravi le 8 Sep 2018
Try this :
publish('myfile.m','pdf')
Remark: The default file format is .html
Read the link below for better understanding:
  27 commentaires
Muhammad Ramzan
Muhammad Ramzan le 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 le 8 Sep 2018
t=1:256;
just suppress the output by putting semicolon(;)

Connectez-vous pour commenter.

Plus de réponses (4)

Alan Hernandez Ramirez
Alan Hernandez Ramirez le 4 Fév 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
  3 commentaires
Scott Simmons
Scott Simmons le 4 Juin 2020
Same
KARI WEISS
KARI WEISS le 15 Sep 2020
same question

Connectez-vous pour commenter.


Walter Roberson
Walter Roberson le 8 Sep 2018
"You specify the output format and location on the Publish settings pane. "
  1 commentaire
madhan ravi
madhan ravi le 8 Sep 2018
+1 @sir Walter advanced thinking.

Connectez-vous pour commenter.


laurent jalabert
laurent jalabert le 4 Juin 2020

sujit
sujit le 26 Mar 2024
computing average marks of a student?

Catégories

En savoir plus sur MATLAB Report Generator dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by