フィルターのクリア

non uniform data using imagesc is wrong

6 ビュー (過去 30 日間)
elis02
elis02 2023 年 5 月 17 日
コメント済み: elis02 2023 年 5 月 19 日
Hi
I have a matrix of values (see attached), with spaced frequencies.
than i use the command
imagesc(1:step_number, frequencies, 10*log10(Spectra));
and it seems to work nice.
But when I need to plot it as wavelengths it doesn't work, and by that the data presented is wrong. (even arounf the center wavelength)
imagesc(1:step_number, 3e8./frequencies, 10*log10(Spectra));
How can I still plot this?

採用された回答

KSSV
KSSV 2023 年 5 月 17 日
How about
h = pcolor(0:step_number, 3e8./frequencies, 10*log10(Spectra)); ;
>> h.EdgeColor = 'none';
  1 件のコメント
elis02
elis02 2023 年 5 月 19 日
seems to work.
Thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCorrelation and Convolution についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by