当前位置:网站首页>Matlab smooth curve connection scatter diagram

Matlab smooth curve connection scatter diagram

2022-07-05 22:54:00 Feng Xiangwen, come on

Want to achieve the following similar graphics , But there's no data , Use your rough estimation to determine the coordinates of points and draw pictures

% There is no data to draw a rough figure 
clc
clear
xmin = 2000
xmax = 2120
ymin = 0
ymax = 16
x=[2020 2040 2060 2080 2100 2110];
y=[1.3 2 3.5 5.8 10 14.8];
xx=linspace(2012,2110);
yy=spline(x,y,xx);
plot(xx,yy,'-c','LineWidth',3)
axis([xmin xmax ymin ymax])
grid on

 

原网站

版权声明
本文为[Feng Xiangwen, come on]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140350324787.html