Professional Documents
Culture Documents
Clase 1
Clase 1
B =
1.7095
>> C=(1/(3.1-2))^(3/pi)
C =
0.9130
>> A/(B-C)
ans =
13.0434
>> (1+(3*exp(3+2^0.5))^0.5)*(exp(1)+pi)^(1/pi)/(pi*(exp(1)+1)^0.5)
ans =
4.8523
>> x=[1, -1, pi, 1/3]
x =
1.0000
-1.0000
3.1416
0.3333
>> b=1:2:9
b =
1
>> c=11:-2:0
c =
11
>> d=[a b]
d =
2
6
10
0
0
0
0
0
3
7
11
5
0
0
0
0
4
8
12
4
0
0
0
0
>> length(c)
ans =
6
>> d(8)
ans =
5
>>
>>
>>
>>
A=diag([1 2 3 4]);
B=[1:4;5:8;9:12;20 0 5 4];
C=zeros(4);
T=[A B;B' C]
T =
1
0
0
0
1
2
3
4
0
2
0
0
5
6
7
8
0
0
3
0
9
10
11
12
0
0
0
4
20
0
5
4
>> T1=T(3:6,3:6)
T1 =
3
0
9
10
0
4
20
0
9
20
0
0
10
0
0
0
>> T2=T(2:4,7:-2:3)
T2 =
7
11
5
5
9
20
0
3
0
0
4
0
0
0
3
2
0
0
1
5
9
20
0
0
0
0