a function to save a plot as a (compressed) image file.
2 次查看(过去 30 天)
显示 更早的评论
i wanted to know which function can be used to save a plot as compressed image
0 个评论
回答(2 个)
Anjaneyulu Bairi
2024-1-10
Hi,
I understand that you are trying to save a plot as an image file.
"exportgraphics" function is used to save the plot as an image file.
Here is the sample code for how to save a plot as an image file.
plot(rand(5,5))
ax = gca;
exportgraphics(ax,'LinePlot.jpg')
Refer the below documentation link for more information
Hope it helps to resolve your query.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!