用MATLAB画测量数据的二维图

2025-02-28 13:18:58
推荐回答(3个)
回答1:

x=..;
y=....;
plot(x,y,'*')

% 表示以x为自变量,y为函数图像,用“*”来打出点来

回答2:

x=0:0.01:0.6;
y = [0.0000 0.8726 1.3803 1.3876 1.0490 0.6667 0.4612 5 6 6
0.4365 0.4293 0.2848 -0.0000 -0.2848 -0.4293 -0.4365 2 2 1
-0.4612 -0.6667 -1.0490 -1.3876 -1.3803 -0.8726 0 0.3 0.5 0
.6
0.8726 1.3803 1.3876 1.0490 0.6667 0.4612 0.4365 ...
0.4293 0.2848 0.0000 -0.2848 -0.4293 -0.4365 -0.4612 ...
-0.6667 -1.0490 -1.3876 -1.3803 -0.8726 -0.0000];
plot(x,y,'+')
hold on
plot(x,y,'g')

回答3:

spline(x,y,'b-')