Professional Documents
Culture Documents
x =
1
3
3
4
>> y=[2 3 4 4]'
y =
2
3
4
4
>>
>>
>>
>>
>>
>>
plot(x,y, 'or')
plot(x,y, 'r')
plot(x,y, 'b')
plot(x,y, 'b')
plot(x,y, 'r')
A=[1 1;3 1;3 1;4 1]
A =
1
3
3
4
1
1
1
1
0
1
0
0
0
0
1
0
0
0
0
1
4
4
>> L=[2 3 4 4]
L =
2
>> x=2
x =
2
>> y2=0.6842*x+1.3684
y2 =
2.7368
>> x=3
x =
3
>> y2=0.6842*x+1.3684
y2 =
3.4210
>> x=4
x =
4
>> y4=0.6842*x+1.3684
y4 =
4.1052
>> x=3
x =
3
>> y3=0.6842*x+1.3684
y3 =
3.4210
>> y=[y1 y2 y3 y4]
y =
2.0526
3.4210
3.4210
4.1052
3.4210
3.4210
4.1052
>> x=[1 3 3 4]'
x =
1
3
3
4
>> plot(x,y, 'r')
>>