f



Matrix 3d plot(3d graphic)

I have this matrix 8*8.

Here's the matrix I want to plot:


matrix=[1 2 3 4 5 10 11 20
            2 4 3 1 5 6 7 9 13
            4 5 8 7 9 2 1 9 11
            3 2 1 6 7 9 8 4 12
            5 4 3 2 1 7 9 0 14
            9 0 1 3 4 6 2 3 15
            6 0 2 3 4 6 9 3 15
            7 1 3 2 4 6 9 8 15]


How can I plot these matrix in 3D?

Can anyone help me please?

I know which functions are used for 3D plot in matlab.


I begin in command window with defining my matrix:

>>matrix=[1 2 3 4 5 10 11 20
            2 4 3 1 5 6 7 9 13
            4 5 8 7 9 2 1 9 11
            3 2 1 6 7 9 8 4 12
            5 4 3 2 1 7 9 0 14
            9 0 1 3 4 6 2 3 15
            6 0 2 3 4 6 9 3 15
            7 1 3 2 4 6 9 8 15]

I don't know how to plot in 3D .

I tried:

>>ezplot3(matrix)

>>ezsurf(matrix)

Can someone save me pls?
0
mihaispr (1097)
6/10/2009 9:45:03 PM
comp.soft-sys.matlab 211265 articles. 25 followers. lunamoonmoon (257) is leader. Post Follow

3 Replies
770 Views

Similar Articles

[PageSpeed] 25

Should I use surf , mesh?
0
mihaispr (1097)
6/10/2009 9:54:02 PM
Or plot3?
0
mihaispr (1097)
6/10/2009 9:58:02 PM
For a matrix M, the command surf(M) is a pretty good way to get a 3-d surface plot.
0
wthurt (11)
6/11/2009 4:26:53 AM
Reply: