2012-07-08 123 views
1

可能重複:
Matlab 3D Matrix Plot3D繪圖基於矩陣

我在MATLAB矩陣,我要繪製的3D圖形。 假設矩陣看起來如下:

A = [4 7 8; 2 3 9]

這實際上意味着在X,Y,Z平面

(1,1,4-)(1,2,7)以下的數據點(1,3,8 )(2,1,2)(2,2,3)(2,3,9)

我想將這些值繪製在3D圖形上。

我該怎麼做?

+0

見[這裏](http://stackoverflow.com/questions/9396096/matlab- 3d-matrix-plot) – chaohuang 2012-07-08 03:54:59

+1

您可以使用surf(A)繪製您的2D矩陣。看到這裏:http://stackoverflow.com/questions/12827934/3d-plotting-of-a-2d-matrix-in-matlab/19742713#19742713 – sagunms 2013-11-02 14:10:51

回答

2

的函數的使用是surf(A) 這將從x = 1繪製的點:2和y = 1:3