Plot A Matrix

조회 수: 2 (최근 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에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by