Changing colourmap with user input - specifying number of colours
1 次查看(过去 30 天)
显示 更早的评论
I'm making an app with app designer to view spectrograms. I then want to save the spectrogram using the colour map specified by the user.
This is my current code:
imwrite( ind2rgb( im2uint8( flipud( soundData), pink(128))));
However, I want to be able to change the colour map according to the user's preference. I have tried not specifying the number of colours or making everything into a string (e.g. ['jet' (128)], 'jet(128)', 'jet'), but none of these work.
Any ideas?
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Red 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!