Filter löschen
Filter löschen

a function to save a plot as a (compressed) image file.

6 Ansichten (letzte 30 Tage)
Joel Jacob
Joel Jacob am 9 Jan. 2024
Beantwortet: Anjaneyulu Bairi am 10 Jan. 2024
i wanted to know which function can be used to save a plot as compressed image

Antworten (2)

Voss
Voss am 9 Jan. 2024

Anjaneyulu Bairi
Anjaneyulu Bairi am 10 Jan. 2024
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.

Kategorien

Mehr zu Printing and Saving finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by