How to save a figure to png file format?
20 views (last 30 days)
I have a figure list: ... figure, for n=1:2:length(line2) In=imcrop(Ik,[line2(n) 1 line2(n+1)-line2(n) bar1]); subplot(1,length(line2)/2,kk); imshow(In); imwrite(In,'ekstraksi_pp.jpg'); kk=kk+1; end ...
the savefig can work but the hgexport can't. after save it as a png image i want to show it in an axes. but the hgexport can't work in the first place.
It says the error: First argument must be a handle to a figure.
I will be grateful for any help. Thankyou.
Mike Garrity on 25 Jun 2015
That error message is trying to say that the syntax for hgexport is this: