Borrar filtros
Borrar filtros

How to Publish matlab outout and code in pdf.

170 visualizaciones (últimos 30 días)
Muhammad Ramzan
Muhammad Ramzan el 8 de Sept. de 2018
Respondida: sujit el 26 de Mzo. de 2024
Hello, How i can publish matlab output and code ".m file" into pdf format.
Thanks
  1 comentario
Pratyay Sengupta
Pratyay Sengupta el 2 de Jun. de 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.

Iniciar sesión para comentar.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (4)

Alan Hernandez Ramirez
Alan Hernandez Ramirez el 4 de Feb. de 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 comentarios
Scott Simmons
Scott Simmons el 4 de Jun. de 2020
Same
KARI WEISS
KARI WEISS el 15 de Sept. de 2020
same question

Iniciar sesión para comentar.


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

laurent jalabert
laurent jalabert el 4 de Jun. de 2020

sujit
sujit el 26 de Mzo. de 2024
computing average marks of a student?

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by