Imagesc & plot matrix
显示 更早的评论
Hello, actually i'm trying to plot a matrix. The values of this matrix are variable between -1 and 1 (i'm working on the correlation between different data). in figure:
this is a matrix 5x5 but to who has never seen the numerical matrix i think that it is difficult to understand. i want to know if exists a way to know for example what i'm correlating between the value 0.5 1.5, i mean i know what i'm correlating but i want that also the others watching this plot can understand it easy. another thing that i'ven't understood is what the numbers between 0.5 and 5.5 stay for.
pcolor can be used in this case?how?
thank you for the help
1 个评论
Image Analyst
2011-12-9
Explain what you mean by "i want that also the others watching this plot can understand it." I'm sure others who would view your images or plots would understand what you did especially if you explained it to them, wouldn't they?
采纳的回答
更多回答(2 个)
Salvatore Turino
2011-12-9
4 个评论
Sven
2011-12-9
Check my updated answer... is that what you're looking for?
Sven
2011-12-9
Updated again. How about now?
Salvatore Turino
2011-12-9
Sven
2011-12-9
Yes, you can. see "doc colormap" or type "lines(5)", "summer(5)" and "gray(5)" into the command window and see the output
Salvatore Turino
2011-12-9
0 个投票
2 个评论
Sven
2011-12-9
Sure, this is called an index colour map. Note that this is a different way of representing colour to what this question originally asked. I think a good idea to keep topics separate (and therefore clear) will be to accept an answer here and ask a new question if needed.
A really good place to start will be at "doc gray2ind". It might answer this second question for you, but if not you can always start a new question on that topic.
Sven
2011-12-9
And I think your best resource might be to start at:
Doc > Image Processing Toolbox > Introduction
There are two topics there "Expressing Image Locations" and "Image Types In the Toolbox" which give great examples of the pixel location question and this colour representation question.
类别
在 帮助中心 和 File Exchange 中查找有关 White 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!