How to display image from 2d matrix?

I have 200*200 double matrix and I want to see thee image generated.What code snippet should I use?

 Accepted Answer

Let A be your matrix.
figure
imshow(A)
figure
imagesc(A)
figure
pcolor(A) ;
shading interp;
colorbar

More Answers (0)

Products

Release

R2021a

Asked:

on 11 Sep 2021

Answered:

on 11 Sep 2021

Community Treasure Hunt

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

Start Hunting!