MATLAB: How to the indexed imgage as png file

digital image processingImage Processing Toolbox

[cdata cmap]=imread("pc.gif");
How i save this image and view this?
Also i save this image as png file?
How it is possible?

Best Answer

[cdata cmap]=imread('pc.gif');
imshow(cdata,cmap)%display your image
imwrite(cdata,cmap,'pc.png')
Related Question