6 lines
90 B
Matlab
6 lines
90 B
Matlab
x=[-2 0 2 3 4 5];
|
|
y=[4 0 -4 -30 -40 -30];
|
|
xx=-2:0.1:5;
|
|
yy=spline(x,y,xx);
|
|
plot(xx,yy,'g')
|