MATLAB: Png to eps conversion

eps

I want to convert an image .png to .eps converstion.. Can you please suggest me the code..
I=imread('rp_noise.png');
imwrite(I,'rp_eps.eps','eps');
showing error ???Invalid input syntax or unrecognized format "eps"
Help me!

Best Answer

Make the plot that you want in MATLAB and save the plot as an .eps file
print -depsc figure.eps
or the appropirate -deps option, see the help for print.