You are on page 1of 12

>> 25+40/34-17

ans =

9.1765

>> 56+72-16/4*8+50

ans =

146

>> 34/6+186-57*12

ans =

-492.3333

>>27^4*15+120-48

ans =

7971687

>> sqrt(65536)+35-124/12

ans =

280.6667

>> sqrt(175+256*12/8)

ans =

23.6432

>> 105+23-58*25-100

ans =

-1422
>> ans+34/6+186-57*15

ans =

-2.0853e+03

>> cos(pi/3)

ans =

0.5000

>>

sin(pi/2)+cos(pi/3)

ans =

1.5000

>>

tan(pi*4)+cos(pi*3)

ans =

-1.0000

>>

sin(pi/4)+tan(pi/2)-cos(pi/2)

ans =

1.6331e+16

>>History

Figures

ans =

1.6331e+16

>>

sin(pi/4)+tan(pi/2)-cos(pi/2)

>>
A=[6 9 7 8 11 9; 12 9 8 4 10 7; 6 14 9 6 9 6; 8 4 7 9 11 5; 4 12 9 6 8 10]

A=

6 9 7 8 11 9

12 9 8 4 10 7

6 14 9 6 9 6

8 4 7 9 11 5

4 12 9 6 8 10

>>

A(4,5)

ans =

11

>>

A(2,3)

ans =

>>

A(3,:)

ans =

6 14 9 6 9 6

>>

A(:,4)

ans =

9
6

>>History

Figures

>>

A=[9 8 5 15 20 1; 1 19 8 5 10 7; 6 16 19 6 8 6; 5 4 3 9 11 2; 3 16 19 26 38 10]

A=

9 8 5 15 20 1

1 19 8 5 10 7

6 16 19 6 8 6

5 4 3 9 11 2

3 16 19 26 38 10

>>

A(5,6)

ans =

10

>>

A(3,1)

ans =

>>

A(5,:)

ans =

3 16 19 26 38 10

>>

A(:,6)

ans =
1

10

>>History

Figures

>>

E=zeros(9,7)

E=

Columns 1 through 6

0 0 0 0 0 0

0 0 0 0 0 0

0 0 0 0 0 0

0 0 0 0 0 0

0 0 0 0 0 0

0 0 0 0 0 0

0 0 0 0 0 0

0 0 0 0 0 0

0 0 0 0 0 0

Column 7

0
0

>>

U=ones(10,6)

U=

1 1 1 1 1 1

1 1 1 1 1 1

1 1 1 1 1 1

1 1 1 1 1 1

1 1 1 1 1 1

1 1 1 1 1 1

1 1 1 1 1 1

1 1 1 1 1 1

1 1 1 1 1 1

1 1 1 1 1 1

>>History

Figures

>>

t= 12 : 4 : 256

t=

Columns 1 through 6

12 16 20 24 28 32

Columns 7 through 12

36 40 44 48 52 56

Columns 13 through 18
60 64 68 72 76 80

Columns 19 through 24

84 88 92 96 100 104

Columns 25 through 30

108 112 116 120 124 128

Columns 31 through 36

132 136 140 144 148 152

Columns 37 through 42

156 160 164 168 172 176

Columns 43 through 48

180 184 188 192 196 200

Columns 49 through 54

204 208 212 216 220 224

Columns 55 through 60

228 232 236 240 244 248


Columns 61 through 62

252 256

>>History

Figures

>>

t= 115 : -1.5 : 5

t=

Columns 1 through 3

115.0000 113.5000 112.0000

Columns 4 through 6

110.5000 109.0000 107.5000

Columns 7 through 9

106.0000 104.5000 103.0000

Columns 10 through 12

101.5000 100.0000 98.5000

Columns 13 through 15

97.0000 95.5000 94.0000

Columns 16 through 18
92.5000 91.0000 89.5000

Columns 19 through 21

88.0000 86.5000 85.0000

Columns 22 through 24

83.5000 82.0000 80.5000

Columns 25 through 27

79.0000 77.5000 76.0000

Columns 28 through 30

74.5000 73.0000 71.5000

Columns 31 through 33

70.0000 68.5000 67.0000

Columns 34 through 36

65.5000 64.0000 62.5000

Columns 37 through 39

61.0000 59.5000 58.0000

Columns 40 through 42
56.5000 55.0000 53.5000

Columns 43 through 45

52.0000 50.5000 49.0000

Columns 46 through 48

47.5000 46.0000 44.5000

Columns 49 through 51

43.0000 41.5000 40.0000

Columns 52 through 54

38.5000 37.0000 35.5000

Columns 55 through 57

34.0000 32.5000 31.0000

Columns 58 through 60

29.5000 28.0000 26.5000

Columns 61 through 63

25.0000 23.5000 22.0000


Columns 64 through 66

20.5000 19.0000 17.5000

Columns 67 through 69

16.0000 14.5000 13.0000

Columns 70 through 72

11.5000 10.0000 8.5000

Columns 73 through 74

7.0000 5.5000

>>History

Figures

>>

linspace (3,7,11)

ans =

Columns 1 through 3

3.0000 3.4000 3.8000

Columns 4 through 6

4.2000 4.6000 5.0000

Columns 7 through 9
5.4000 5.8000 6.2000

Columns 10 through 11

6.6000 7.0000

>>

logspace(-5,5,12)

ans =

1.0e+05 *

Columns 1 through 3

0.0000 0.0000 0.0000

Columns 4 through 6

0.0000 0.0000 0.0000

Columns 7 through 9

0.0000 0.0002 0.0019

Columns 10 through 12

0.0152 0.1233 1.0000

>>

You might also like