Clear Filters
Clear Filters

drow a image only by a matrix

2 views (last 30 days)
Fatima prv
Fatima prv on 9 Jul 2012
If I have a image's matrix( for example a matrix 300*400) , how do I drow this matrix as a image? Also depends on the type of photo?

Accepted Answer

Thomas
Thomas on 9 Jul 2012
Maybe imshow will help
eg:
c=rand(300,400); % generate random matrix data
imshow(c)
  7 Comments
Ryan
Ryan on 9 Jul 2012
Edited: Ryan on 9 Jul 2012
What is the result of unique(image_matrix)? Does imshow(image_matrix,[]) work?
Fatima prv
Fatima prv on 9 Jul 2012
no , this command show all of number that used in image matrix as a vector.

Sign in to comment.

More Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!