Beruflich Dokumente
Kultur Dokumente
>> X=[-3 0 2 4]
X =
-3 0 2 4
>> Y=[3 1 1 3]
Y =
3 1 1 3
>> P=minPoly(X,Y,2)
F =
1 0 0
1 0 0
1 0 0
1 0 0
F =
1 -3 0
1 0 0
1 2 0
1 4 0
F =
1 -3 9
1 0 0
1 2 4
1 4 16
P =
>>
>>
>> X=[1 2 3 4 5]
X =
1 2 3 4 5
Y =
>> P=minPoly(X,Y,2)
F =
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
F =
1 1 0
1 2 0
1 3 0
1 4 0
1 5 0
F =
1 1 1
1 2 4
1 3 9
1 4 16
1 5 25
P =
>> P=minPoly(X,Y,4)
F =
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
F =
1 1 0 0 0
1 2 0 0 0
1 3 0 0 0
1 4 0 0 0
1 5 0 0 0
F =
31/08/18 08:54 AM MATLAB Command Window 3 of 8
1 1 1 0 0
1 2 4 0 0
1 3 9 0 0
1 4 16 0 0
1 5 25 0 0
F =
1 1 1 1 0
1 2 4 8 0
1 3 9 27 0
1 4 16 64 0
1 5 25 125 0
F =
1 1 1 1 1
1 2 4 8 16
1 3 9 27 81
1 4 16 64 256
1 5 25 125 625
P =
>>
>>
>> X=[0.1 0.4 0.5 0.7 0.7 0.9]
X =
Y =
>> ajusteCL1(X,Y,3)
ans =
>>
>>
>> t=1:0.01:5;
>> r=P(1)+P(2)*t+P(3)*sin(pi*t);
>> plot(t,r,X,Y,'o')
31/08/18 08:54 AM MATLAB Command Window 4 of 8
>> r=P(0)+P(1)*t+P(2)*sin(pi*t);
Subscript indices must either be real positive integers or logicals.
X =
>> Y=[0.3 0.6 0.4 0.9 0.7 1.1 1.5 1.3 1.6]
Y =
>> ajusteCL1(X,Y,3)
ans =
>> t=1:0.01:5;
>> r=P(1)+P(2)*t+P(3)*sin(pi*t);
>> plot(t,r,X,Y,'o')
>> P=minPoly(X,Y,8)
F =
1 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0
F =
1.0000 1.9000 0 0 0 0 0 0
0
1.0000 3.1000 0 0 0 0 0 0
0
1.0000 4.2000 0 0 0 0 0 0
0
1.0000 5.1000 0 0 0 0 0 0
31/08/18 08:54 AM MATLAB Command Window 5 of 8
0
1.0000 5.8000 0 0 0 0 0 0
0
1.0000 6.9000 0 0 0 0 0 0
0
1.0000 8.1000 0 0 0 0 0 0
0
1.0000 9.3000 0 0 0 0 0 0
0
1.0000 10.0000 0 0 0 0 0 0
0
F =
F =
1.0e+03 *
F =
1.0e+04 *
F =
1.0e+05 *
F =
1.0e+06 *
31/08/18 08:54 AM MATLAB Command Window 7 of 8
F =
1.0e+07 *
F =
1.0e+08 *
P =
1.0e+03 *
>>
>> grafica guia 7
Undefined function or variable 'grafica'.
>> plot(t,r,X,Y,'o'
plot(t,r,X,Y,'o'
↑
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.