Plot A Matrix
조회 수: 2 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
Walter Roberson
2011년 12월 5일
imagesc() would probably be better than surf() for this purpose.
imagesc(magic(7))
추가 답변 (1개)
Sean de Wolski
2011년 12월 5일
maybe one of these?
doc mesh
doc surf
doc contour
댓글 수: 2
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 Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!