Plot A Matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 5 Dez. 2011
imagesc() would probably be better than surf() for this purpose.
imagesc(magic(7))
Weitere Antworten (1)
Sean de Wolski
am 5 Dez. 2011
maybe one of these?
doc mesh
doc surf
doc contour
2 Kommentare
Sean de Wolski
am 5 Dez. 2011
>> 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.
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!