Professional Documents
Culture Documents
MATLAB Command Window
MATLAB Command Window
>> 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)
P =
>> P=minPoly(X,Y,3)
P =
>> P=ajusteCL(X,Y,3)
P =
>> t=1:0.01:5;
>> r=P(1)+P(2)*t+P(3)*sin(t);
>> plot(t,r,X,Y,'o')
>> t=1:0.01:5;
>> r=P(-3)+P(0)*t+P(2)*sin(t);
Attempted to access P(-3); index must be a positive integer
or logical.
>> X=[-1 3 2]
X =
-1 3 2
Y =
1 0 -1
>> P=minPoly(X,Y,2)
You created this PDF from an application that is not licensed to print to novaPDF printer (http://www.novapdf.com)
16/08/18 9:01 MATLAB Command Window 2 of 4
P =
>> X=[1 2 3 4 5]
X =
1 2 3 4 5
Y =
>> P=minPoly(X,Y,4)
P =
X =
Y =
>> ajusteCL1(X,Y,3)
ans =
>> P=ajusteCL1(X,Y,3)
P =
>> t=1:0.01:5;
>> r=P(1)+P(2)*t+P(3)*sin(PI*t);
Undefined function or variable 'PI'.
You created this PDF from an application that is not licensed to print to novaPDF printer (http://www.novapdf.com)
16/08/18 9:01 MATLAB Command Window 3 of 4
>> r=P(1)+P(2)*t+P(3)*sin(pi*t);
>>
>> X=[1.9 3.1 4.2 5.1 5.8 6.9 8.1 9.3 10]
X =
Columns 1 through 6
Columns 7 through 9
>> Y=[0.3 0.6 0.4 0.9 0.7 1.1 1.5 1.3 1.6]
Y =
Columns 1 through 6
Columns 7 through 9
>> ajusteCL1(X,Y,3)
ans =
>> P=ajusteCL1(X,Y,3)
P =
>> 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)
P =
You created this PDF from an application that is not licensed to print to novaPDF printer (http://www.novapdf.com)
16/08/18 9:01 MATLAB Command Window 4 of 4
1.0e+03 *
Columns 1 through 6
Columns 7 through 9
>>
You created this PDF from an application that is not licensed to print to novaPDF printer (http://www.novapdf.com)