Plots: Designing and Saving
显示 更早的评论
How can I include code in my M-File that builds a plot of my data with the following properties:
- grid on
- a vertical line at data point 10 running from the min to max y limits
- title
- xlabel and ylabels
I then want to be able to save this plot as an image with something like:
saveas(graph, 'graph.tiff');
Many thanks for any help you are able to give me!
采纳的回答
更多回答(1 个)
Robert Cumming
2011-5-14
help grid
help ylim %use this to get y limits so you can plot ( [10 10], [ymin ymax] )
help title
help xlabel
help ylabel
类别
在 帮助中心 和 File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!