Professional Documents
Culture Documents
%1.1
a=15
%1.2
b=2.1e25
%1.3
c=(2+3i)
%1.4
d=exp (j*(2*pi/3))
>> PassTask1
a=
15
b=
2.1000e+25
c=
2.0000 + 3.0000i
d=
-0.5000 + 0.8660i
%Pass Task 1_2 SN 101201561
%2.1
a = [3.14 15 9 26]
%2.2
b = [2.51; 5; 28; 180]
%2.3
c = [5:-0.2:-5]
%2.4
d = logspace(1,10,100)
%2.5
e = 'Hello Swinburne!'
>> PassTask1_2
aVec =
bVec =
2.5100
5.0000
28.0000
180.0000
cVec =
Columns 1 through 6
Columns 7 through 12
Columns 13 through 18
Columns 19 through 24
Columns 25 through 30
Columns 31 through 36
Columns 37 through 42
-2.2000 -2.4000 -2.6000 -2.8000 -3.0000 -3.2000
Columns 43 through 48
Columns 49 through 51
dVec =
1.0e+10 *
Columns 1 through 6
Columns 7 through 12
Columns 13 through 18
0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
Columns 19 through 24
Columns 25 through 30
Columns 31 through 36
Columns 37 through 42
Columns 43 through 48
Columns 49 through 54
0.0000 0.0000 0.0000 0.0000 0.0001 0.0001
Columns 55 through 60
Columns 61 through 66
Columns 67 through 72
Columns 73 through 78
Columns 79 through 84
Columns 85 through 90
eVec =
Hello Swinburne!
>> PassTask1_3
aMat =
3 3 3 3 3 3
3 3 3 3 3 3
3 3 3 3 3 3
3 3 3 3 3 3
3 3 3 3 3 3
3 3 3 3 3 3
bMat =
1 11 21 31 41 51 61 71 81 91
2 12 22 32 42 52 62 72 82 92
3 13 23 33 43 53 63 73 83 93
4 14 24 34 44 54 64 74 84 94
5 15 25 35 45 55 65 75 85 95
6 16 26 36 46 56 66 76 86 96
7 17 27 37 47 57 67 77 87 97
8 18 28 38 48 58 68 78 88 98
9 19 29 39 49 59 69 79 89 99
10 20 30 40 50 60 70 80 90 100
C=
1 2 3
4 5 6
cMat =
1 2 3 1 2 3
4 5 6 4 5 6
1 2 3 1 2 3
4 5 6 4 5 6
dMat =
12 -2 3
4 8 -9
>> PassTask1_3
aMat =
3 3 3 3 3 3
3 3 3 3 3 3
3 3 3 3 3 3
3 3 3 3 3 3
3 3 3 3 3 3
3 3 3 3 3 3
bMat =
1 11 21 31 41 51 61 71 81 91
2 12 22 32 42 52 62 72 82 92
3 13 23 33 43 53 63 73 83 93
4 14 24 34 44 54 64 74 84 94
5 15 25 35 45 55 65 75 85 95
6 16 26 36 46 56 66 76 86 96
7 17 27 37 47 57 67 77 87 97
8 18 28 38 48 58 68 78 88 98
9 19 29 39 49 59 69 79 89 99
10 20 30 40 50 60 70 80 90 100
C=
1 2 3
4 5 6
cMat =
1 2 3 1 2 3
4 5 6 4 5 6
1 2 3 1 2 3
4 5 6 4 5 6
dMat =
12 -2 3
4 8 -9
E=
Columns 1 through 10
2 3 -3 3 1 -3 -2 0 3 3
Columns 11 through 15
-2 3 3 0 2
eMat =
2 -3 -2
3 -2 3
-3 0 3
3 3 0
1 3 2
>> PassTask1_4
x=
1.3941
y=
3.2913e+26
z=
-1.3091 + 0.1208i
%Pass Task 1_5 SN 101201561
%5.1
xVec = (exp((-(cVec).^2)/2.5^2))/sqrt(2*pi*2.5^2)
%5.2
yVec = sqrt((aVec').^2+(bVec).^2)
%5.3
zVec = log10(dVec.^(-1))
>> PassTask1_5
xVec =
Columns 1 through 6
Columns 7 through 12
Columns 13 through 18
Columns 19 through 24
Columns 31 through 36
Columns 37 through 42
Columns 43 through 48
Columns 49 through 51
yVec =
4.0199
15.8114
29.4109
181.8681
zVec =
Columns 1 through 6
Columns 7 through 12
Columns 13 through 18
Columns 19 through 24
Columns 25 through 30
Columns 37 through 42
Columns 43 through 48
Columns 49 through 54
Columns 55 through 60
Columns 61 through 66
Columns 73 through 78
Columns 79 through 84
Columns 85 through 90
Columns 91 through 96
>> PassTask1_6
xMat =
1.0e+04 *
yMat =
1.0e+03 *
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
>> PassTask1_7
ans =
new =
1 1 1
dMat =
1 1 1
4 8 -9
B=
0 15 30 45 60
LVec =
Columns 1 through 10
1 2 3 4 5 6 7 8 9 10
Columns 11 through 20
11 12 13 14 15 16 17 18 19 20
LVec =
Columns 1 through 10
1 -2 3 -4 5 -6 7 -8 9 -10
Columns 11 through 20
>> PassTask1_8
bSum =
cMean =
2
cSub =
6 4 5
3 1 2
6 4 5
ans =
r=
f=
3 5
r=