how to smoothen this calor bar image

2 ビュー (過去 30 日間)
satheesh rao
satheesh rao 2023 年 7 月 18 日
編集済み: Chunru 2023 年 7 月 18 日
i have used imagesc function to plot 11x17 array. it looks like pxels. i want it to have smooth transition. how to do it

回答 (1 件)

Chunru
Chunru 2023 年 7 月 18 日
編集済み: Chunru 2023 年 7 月 18 日
n = 17;
x =0:n-1; y=0:n-1;
a = randn(n, n);
subplot(121); imagesc(x, y, a);
xlim([0 n-1]); ylim([0 n-1]);
subplot(122);
% interpolation
x1 = 0:.2:n-1;
y1 = 0:.2:n-1;
b = interp2(x, y, a, x1, y1');
imagesc(x1, y1, b);
xlim([0 n-1]); ylim([0 n-1]);

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by