Plot A Matrix

1 次查看(过去 30 天)
Salvatore Turino
Salvatore Turino 2011-12-5
Is it possible to plot a matrix? i have a matrix 7x7 with valure around 1 and i want to show (maybe with different colour) how near are to 1 these value as it is a temperature or something like that.

采纳的回答

Walter Roberson
Walter Roberson 2011-12-5
imagesc() would probably be better than surf() for this purpose.
imagesc(magic(7))
  1 个评论
Salvatore Turino
Salvatore Turino 2011-12-5
yes this is what i was looking for.
thank you

请先登录,再进行评论。

更多回答(1 个)

Sean de Wolski
Sean de Wolski 2011-12-5
maybe one of these?
doc mesh
doc surf
doc contour
  2 个评论
Salvatore Turino
Salvatore Turino 2011-12-5
mmm can you give me an example?
Sean de Wolski
Sean de Wolski 2011-12-5
>> surf(magic(5))
magic(5) creates a 5x5 magic square, surf plots it as a surface. The more specific you can be with the results you're after, the better we can tune our answers.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by