如何画三维图:数据如下,前三列分别为XYZ坐标,最后一列为在XYZ坐标点测得的值,如何画出来呢?8881.5578861.5698841.5778821.5868801.59388-21.59588-41.59788-61.59788-81.59186-81.70686-61.72
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 08:43:57
如何画三维图:数据如下,前三列分别为XYZ坐标,最后一列为在XYZ坐标点测得的值,如何画出来呢?8881.5578861.5698841.5778821.5868801.59388-21.59588-41.59788-61.59788-81.59186-81.70686-61.72
如何画三维图:数据如下,前三列分别为XYZ坐标,最后一列为在XYZ坐标点测得的值,如何画出来呢?
8881.557
8861.569
8841.577
8821.586
8801.593
88-21.595
88-41.597
88-61.597
88-81.591
86-81.706
86-61.723
86-41.726
86-21.726
8601.723
8621.718
8641.708
8661.695
8681.679
8481.75
8461.773
8441.789
8421.802
8401.809
84-21.812
84-41.809
84-61.799
84-81.779
82-81.816
82-61.842
82-41.855
82-21.859
8201.857
8221.85
8241.836
8261.816
8281.788
8081.801
8061.832
8041.853
8021.868
8001.875
80-21.875
80-41.867
80-61.852
80-81.826
8-2-81.807
8-2-61.833
8-2-41.85
8-2-21.858
8-201.859
8-221.855
8-241.842
8-261.82
8-281.791
8-481.759
8-461.783
8-441.801
8-421.812
8-401.815
8-4-21.812
8-4-41.805
8-4-61.788
8-4-81.769
8-6-81.708
8-6-61.726
8-6-41.738
8-6-21.746
8-601.748
8-621.744
8-641.738
8-661.722
8-681.701
8-881.627
8-861.642
8-841.652
8-821.658
8-801.66
8-8-21.657
8-8-41.652
8-8-61.644
8-8-81.631
如何画三维图:数据如下,前三列分别为XYZ坐标,最后一列为在XYZ坐标点测得的值,如何画出来呢?8881.5578861.5698841.5778821.5868801.59388-21.59588-41.59788-61.59788-81.59186-81.70686-61.72
你这里总共有八十一个数据.按照你给的数据可以画出一个三维空间中的曲线图.
你的数据有些多,我去其中的一9个数据来举例吧:
>>x=8*ones(9);
>>y=8*ones(9);
>>z=[8 6 4 2 0 -2 -4 -6 -8];
>>f=[1.557 1.569 1.577 1.586 1.593 1.595 1.597 1.597 1.591];
>>plot3(x,y,z,f,'*-')