Want gray scale image of a matrix in matlab

  • #1
16
0

Main Question or Discussion Point

I am creating a gray-scale image of a 2000*2000 matrix using mat2gray and imshow command.But highest number of matrix entries that imshow can implement is 500*500 approximately.After that it shows------

"Warning: Image is too big to fit on screen; displaying at 8%
> In imuitools\private\initSize at 72
In imshow at 259 "

I know what is going on here but I want my all 2000*2000 matrix entries to be plotted in gray-scale. Is there any possible way?Please suggest some easy way because I am new in matlab.
 

Answers and Replies

  • #2
11,366
4,837
You could reduce your 2000x2000 to a 500x500 array by taking every fourth element or better yet average the elements in a 4x4 square to be the single element in the 500x500 image.
 
  • #3
16
0
No I want full resolution.Because for 500*500 case boundaries in image is not sharp enough for experimental purpose.
 
  • #4
489
188
If you can write the matrix to a file you can use gnuplot.
Not sure which functions you should/could use but it's possible. (I used it once for a simulation of the Ising model)
 

Related Threads for: Want gray scale image of a matrix in matlab

  • Last Post
Replies
1
Views
7K
  • Last Post
Replies
2
Views
4K
Replies
1
Views
981
Replies
1
Views
669
Replies
1
Views
17K
Replies
14
Views
7K
Replies
7
Views
5K
  • Last Post
Replies
0
Views
11K
Top