You are on page 1of 3

MATLAB desktop keyboard shortcuts, such as Ctrl+S, are now customizable.

In addition, many keyboard shortcuts have changed for improved consistency


across the desktop.
To customize keyboard shortcuts, use Preferences. From there, you can also
restore previous default settings by selecting "R2009a Windows Default Set"
from the active settings drop-down list. For more information, see Help.
Click here if you do not want to see this message again.
>> x=1+2^10
x =
1025
>> -10.2578
ans =
-10.2578
>> T=1.25e-4 %1.25x10^-4
T =
1.2500e-004
>> 2 + 3/(4*5) +4^-0.5+(1/5)^(-3/2)
ans =
13.8303
>> exp(1) %el numero e elevado a algo
ans =
2.7183
>> pi
ans =
3.1416
>> pi^3
ans =
31.0063
>> A=3+exp(2)
A =
10.3891
>> B=2/(3^(1/7))

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

>> x=[1, -1, pi, 1/3]'


x =
1.0000
-1.0000
3.1416
0.3333
>> a=1:5
a =
1

>> 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

>> T3=T([2 4 3],5:-1:2)


T3 =
5
20
9

0
4
0

0
0
3

2
0
0

1
5
9
20
0
0
0
0

You might also like