non uniform data using imagesc is wrong
11 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
KSSV
2023-5-17
How about
h = pcolor(0:step_number, 3e8./frequencies, 10*log10(Spectra)); ;
>> h.EdgeColor = 'none';
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!