Subplots Saveas Function Problem
Show older comments
Hello,
I did this graph configuration in Property Editor and generated the code. In my code i run it as follows:
X1=[1:6]
Y1=hsd
Y2=hi
Y3=td
Y4=ratio
graph(X1,Y1,Y2,Y3,Y4)
This is the final graph.

How can i save it automatically as a png format with saveas??
Example:
graphwrite=[[Filename],'fisico','.png'];
saveas(...,graphwrite)
Accepted Answer
More Answers (4)
KL
on 12 Sep 2017
g1 = graph(X1,Y1,Y2,Y3,Y4);
saveas(g1,'filename.png')
Sérgio Querido
on 12 Sep 2017
0 votes
2 Comments
Walter Roberson
on 12 Sep 2017
Please show the output for
which -all graph
Sérgio Querido
on 12 Sep 2017
Sérgio Querido
on 12 Sep 2017
Sérgio Querido
on 12 Sep 2017
Categories
Find more on Subplots 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!