Hi , How can i generate a pdf file in matlab with information from code ?

6 views (last 30 days)
Code to generate a pdf file

Answers (1)

John D'Errico
John D'Errico on 3 Apr 2018
Edited: John D'Errico on 3 Apr 2018
Just use publish. See that your comments will be included in the published file. Here is an example script that I just made:
%%publish example
X = randn(1,100);
mean(x)
std(x)
hist(X)
Make sure you go into the publish preferences. Set the output format to pdf.
See the attached .pdf file for the result.

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!