필터 지우기
필터 지우기

How to Publish matlab outout and code in pdf.

조회 수: 170 (최근 30일)
Muhammad Ramzan
Muhammad Ramzan 2018년 9월 8일
답변: sujit 2024년 3월 26일
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
madhan ravi
madhan ravi 2018년 9월 8일
t=1:256;
just suppress the output by putting semicolon(;)

댓글을 달려면 로그인하십시오.

추가 답변 (4개)

Alan Hernandez Ramirez
Alan Hernandez Ramirez 2020년 2월 4일
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
Scott Simmons
Scott Simmons 2020년 6월 4일
Same
KARI WEISS
KARI WEISS 2020년 9월 15일
same question

댓글을 달려면 로그인하십시오.


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