How to create a continuos surface in 3D
古いコメントを表示
Hi, I have this .mat file that is a 8950x3 matrix, the 1st column contains the x-coordinates, the 2nd one the y-coordinates and the third contains the z-coordinates. I would draw a continuos surface like the following figure

The only difference is that z is not the result of a function but is a vector. Is it possible? Thanks to all!
採用された回答
その他の回答 (1 件)
Youssef Khmou
2014 年 4 月 6 日
Try to use this method :
% X is the 8950*3 matrix
x=X(:,1)'*X(:,1); % 8950x8950
y=X(:,2)'*X(:,2);
z=X(:,3)'*X(:,3);
figure; surf(X,Y,Z)
3 件のコメント
Francesco
2014 年 4 月 6 日
Youssef Khmou
2014 年 4 月 6 日
編集済み: Youssef Khmou
2014 年 4 月 6 日
use :
X=X';
and perform the code above
カテゴリ
ヘルプ センター および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!