注册 登录
编程论坛 Matlab

[求助]如何用matlab读取dat文件并画3维图

kideveaya 发布于 2007-07-29 20:37, 2947 次点击
如何用matlab读取dat文件并画图
我的dat文件是这样的形势:
x1 y1 z1
x2 y2 z2
x3 y3 z3
.......
请哪位好心人告诉我程序!!谢谢
2 回复
#2
lhw79952007-09-11 17:40
我也需要
lhw6360529@163.com
谢谢
#3
ydgsl2007-09-12 08:56
x=load('dat.dat')
n=size(x,1);
str=num2str([1:n]');
scatter3(x(:,1),x(:,2),x(:,3))
stem3(x(:,1),x(:,2),x(:,3),'filled')
text(x(:,1),x(:,2),x(:,3),str)
1