plotting matrix of number as image

hi to all, my problem is to draw my matrix... if for example i have A=magic(3); if now i want to draw all the elements of my matrix what can i do??? i try to use command plot but i have no result because its use x values versus y values for plotting... can anybody help please????

 채택된 답변

Sean de Wolski
Sean de Wolski 2011년 5월 20일

0 개 추천

댓글 수: 1

Matt Fig
Matt Fig 2011년 5월 20일
Pier says,
yes....this is my purpose.... i have to see this list program!!!

댓글을 달려면 로그인하십시오.

추가 답변 (3개)

Matt Fig
Matt Fig 2011년 5월 20일

0 개 추천

surf(magic(3))
rotate3d
% or
image(magic(3))
pier
pier 2011년 5월 20일

0 개 추천

many thks for the answer but perhapse i coudn't explane well... i tried to use both answers and the realiza same thing: figure divided in color by the numbers in matrix. instead i want to know how to have a picture(jpg for intend) that is my matrix if A=[1 2 3;4 5 6;7 8 9]; i want to realize a way to picture a matrix with this number 1 2 3 4 5 6 7 8 9 is this possible?????

카테고리

도움말 센터File Exchange에서 Mathematics에 대해 자세히 알아보기

태그

질문:

2011년 5월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by