How do I give the spectrogram a colormap option and save it as it is when plotted?
이전 댓글 표시
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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Blue에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!