How do I give the spectrogram a colormap option and save it as it is when plotted?
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Blue dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!