View difference between Paste ID: yDFhYpYj and de7huW8w
SHOW: | | - or go back to the newest paste.
1
//trace
2
t=[0;1;2]
3
y=[1;3;7]
4
T=linspace(t(1),t($),1000)';
5
A=constrpoly(t)
6
x=mcnorm(A,y)
7
A=constrpoly(T)
8
Y=A*x
9
plot(t,y,'.r')
10
plot(T,Y)
11
12
13
t=linspace(0,2,9)'
14
y =[1, 1.7, 1.95, 1.8, 3., 3.6, 4.45, 5.9, 6.6]'
15
T=linspace(t(1),t($),1000)'
16
A=constrpoly(t)
17
x=mcnorm(A,y)
18
A=constrpoly(T)
19
Y=A*x
20
plot(t,y,'.r')
21
plot(T,Y)