writing/exporting a plot into a file
1 view (last 30 days)
Show older comments
Ian Bunker
on 12 May 2021
Commented: Walter Roberson
on 28 Jul 2021
Hi,
I currently have a program that uses the plot function to generate a graph. I would like to write the graph into a document. I am very new to matlab and coding in general, and so far have been unable to locate the relevant documentation.
0 Comments
Accepted Answer
Walter Roberson
on 12 May 2021
Older releases: see getframe() https://www.mathworks.com/help/matlab/ref/getframe.html?s_tid=doc_ta or print() https://www.mathworks.com/help/matlab/ref/print.html or saveas() https://www.mathworks.com/help/matlab/ref/saveas.html?searchHighlight=saveas&s_tid=srchtitle
Also, if it is for a "document", see the Report Generator product.
2 Comments
Walter Roberson
on 28 Jul 2021
plot() returns an array of "primitive chart line" objects. Surfaces, images, lines, patches, text, are the traditional low level objects; there are now a lot of additional low level objects built around a new layer of even lower level objects
More Answers (0)
See Also
Categories
Find more on Printing and Saving in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!