How to improve my contour plot sensitivity?

Hi,
I'm creating contour/heat maps from data from excel. I am currently using this code (found this online, but cannot remember who to cite - sorry!):
%Import the data in from excel
num = xlsread('DATA.xlsx')
% Reshape the intensity vector into a matrix
[xUnq,~,xIdx] = unique(num(:,1));
[yUnq,~,yIdx] = unique(num(:,2));
zMat = nan(numel(yUnq),numel(xUnq));
zIdx = sub2ind(size(zMat),yIdx,xIdx);
zMat(zIdx) = num(:,3);
% Plot contour
contourf(xUnq,yUnq,zMat)
% Label colour bar
c = colorbar;
c.Label.String = 'CL_{004} (nm)';
This produces a map like this:
However, I'm not finding the sensitivity is quite right, as there large regions of red, where the values all vary. Is there a way to improve this so the variation is more visible?
Additionally, is there a way to remove the black lines around each region?
Thanks in advance!

 採用された回答

KSSV
KSSV 2021 年 7 月 14 日

0 投票

Try:
pcolor(xUnq,yUnq,zMat)
shading interp
colorbar

1 件のコメント

Sam
Sam 2021 年 7 月 14 日
Thank you so, so much!

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeColor and Styling についてさらに検索

製品

リリース

R2020b

質問済み:

Sam
2021 年 7 月 14 日

コメント済み:

Sam
2021 年 7 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by