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!