フィルターのクリア

plot a 6x6 matrix in 3D

2 ビュー (過去 30 日間)
Heshani
Heshani 2011 年 9 月 10 日
I want to plot A (6,6) matrix with row number as x axis, column number as y axis and the value of A(x,y) as z axis. what is the function to use?

採用された回答

Fangjun Jiang
Fangjun Jiang 2011 年 9 月 10 日
N=6;
[X,Y]=meshgrid(1:N,1:N);
surf(X,Y,A);
or plot3(),contour() depending what illustration you want.

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 9 月 10 日
Or just surf(A)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by