How to Publish matlab outout and code in pdf.

611 visualizzazioni (ultimi 30 giorni)
Muhammad Ramzan
Muhammad Ramzan il 8 Set 2018
Risposto: sujit il 26 Mar 2024 alle 2:32
Hello, How i can publish matlab output and code ".m file" into pdf format.
Thanks
  1 Commento
Pratyay Sengupta
Pratyay Sengupta il 2 Giu 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.

Accedi per commentare.

Risposta accettata

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

Accedi per commentare.

Più risposte (4)

Alan Hernandez Ramirez
Alan Hernandez Ramirez il 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

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

laurent jalabert
laurent jalabert il 4 Giu 2020

sujit
sujit il 26 Mar 2024 alle 2:32
computing average marks of a student?

Categorie

Scopri di più su Environment and Settings in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by