Here's my code
% feature_size :[257,7]
figure(1)imagesc( some_image_smaple )colormap(jet(128))set(gca,'YDir','normal')
above code shows like this :
But when I try to save this feature, if I use the code below,
cmap=jet(128);imwrite( some_image_sample, cmap, 'sample.jpg');
it shows like this :
I'm not sure what's wrong, but I'd appreciate it if you let me know.
Best Answer