Logarithmic value scaling in image-function

I have some files, that contain Fourier-transformed data, that is collected over time. If it weren't already transformed, i would use a spectrogram to visualize it, but since that is not an option i was using image().
I'm looking for a way to get logarithmic color scaling for the values that i feed to the function, but couldn't find it.
Can someone help me out?

回答 (1 件)

thoughtGarden
thoughtGarden 2019 年 10 月 10 日

0 投票

Are trying to scale the colors so that changes are exaggerated? Here is an example of what you could do:
C = [1 2 3; 4 5 6; 7 8 9];
figure(1);
image(C);
C10 = 10.^C;
figure(2);
image(C10);
This takes your colors and scales them logrithmically.

カテゴリ

ヘルプ センター および File ExchangeModify Image Colors についてさらに検索

質問済み:

2019 年 10 月 10 日

回答済み:

2019 年 10 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by