Plot a pixel intensity image

1 回表示 (過去 30 日間)
Muniyat Rafa
Muniyat Rafa 2021 年 4 月 29 日
編集済み: Matt J 2021 年 4 月 29 日
Hi I would like to plot a pixel image like figure with a color range red,yellow, green,blue. In example I couldnt find red as a combination.
Attached images for example.

回答 (1 件)

Matt J
Matt J 2021 年 4 月 29 日
編集済み: Matt J 2021 年 4 月 29 日
Perhaps with 'jet',
imshow('cameraman.tif')
colormap jet
colorbar
  2 件のコメント
Muniyat Rafa
Muniyat Rafa 2021 年 4 月 29 日
Thank you so much Matt J I could bring the color range :D
Now for drawing how can I draw an image which is round in structure whereas pixel box is square in structure. Shall I increase the number of matrix?
Matt J
Matt J 2021 年 4 月 29 日
編集済み: Matt J 2021 年 4 月 29 日
Thank you so much Matt J I could bring the color range :D
You're very welcome. Please Accept-click the answer to cofirm that it reoslved your question.

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

カテゴリ

Help Center および File ExchangeColormaps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by