简体   繁体   中英

How to plot a 3D smooth mesh figure in matlab with existing XYZ coordination?

For example I have XYZ coordinates:

X = [1,2,3,4,5];
Y = [2,2,4,7,1];
Z = [0.96,0.52,0.74,0.10,0.33];

Microsoft Excel could not plot a smooth mesh. Is Matlab possible to plot a smooth mesh figure? If yes, please help! Thanks!

If I got your intention correctly, you can use fill3 :

fill3(X,Y,Z,Z)
shading interp

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM