How can i save a imshow plot

Hello everyone. I'm trying to save a stereo vision depth map with colors just like in the stereo vision guide. in order to present the image as i want to save it on the screen i am currently doing the following actions: disparityRange=[0 80]; imagesc(disparityMap,disparityRange); colormap jet now, i want to save the image that is presented by the imagesc with the colors applied to it by the colormap jet.
i tried imwrite,save and looked online but havent found a command that helps me save that image so that it'd be readable by matlab in the future. i would appreciate your help very much! Ohad

Asked:

on 21 Dec 2017

Answered:

on 21 Dec 2017

Community Treasure Hunt

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

Start Hunting!