Description
Questions from Chapter 1
1. Given π₯ = 0.2 calculate the following expression: π = 5 π*.+ cos π₯ * π0.
2. Given π₯ = 0.2 and calculate the following expression: π = ln π β tan π₯ *.
3. Given π₯ = 1.5 and π¦ = 0.5 compute π = cos (
9:;
< )
4. Given π₯ = 8.3 and π¦ = 2.4, evaluate
π = π₯* + π¦* β 9;
:;.
ENEL101 Assignment 1 Page 2
5. In question 4 assume that π¦ = 2π₯. Find π given π₯ = 2.1.
6. Given π₯ = 2 and π¦ = 3, find the solution of 2 2 A x B xy Q A B == = , , tan( ).
7. The equation that identifies the response of a particular circuit is
π = β π
2πΏ +
π
2πΏ
*
β 1
πΏπΆ
Determine the value of π for π
= 800Ξ©, πΆ = 1πF and πΏ = 1πH.
8. The number of combinations Q of taking π objects out of π objects is given by ( )
!
! !
n Q
rnr = -ο .
Determine the number of combinations of taking 2 cards from a deck of 52 cards. Use the built in
function factorial.
9. The current π (in amps) π‘ seconds after closing the switch in a series RL circuit is
π = M
N
1 β πOP
QR .
Given π = 120 volts, π
= 240Ξ© and πΏ = 0.5 henrys, calculate the current 0.003 seconds after the
switch is closed.
10. The formula for changing the base of a logarithm is:
πππW π = YZ[\ ]
YZ[\ W.
Calculate π = log_ 0.085 using Matlabβs log π₯ function.
Questions from Chapter 2
11. Create a column vector π that has the following elements: 0*
0.*; , sin* <
0 , 6.1, ln 29*, and 133.
12. Create a row vector π in which the first element is 3 and the last element is 38, with an increment of
5 between the elements as (3,8,β¦,38).
13. Define the variables π₯ = 0.5 and π¦ = 1 and generate a 3×3 diagonal matrix π with diagonal values
of π₯, sin π₯π¦ and tan :
9
. Use the function diag() for this purpose
14. Use the eye command to create a 4×4 identity matrix
π =
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
.
ENEL101 Assignment 1 Page 3
15. Form a 3 2 Β΄ο΄ matrix π with the columns of (1,1,1) and (2,2,2).
16. Create the following matrix,
103
104
105
106
107
Q
Γ©ο© ΓΉοΉ
Γͺοͺ ΓΊοΊ
Γͺοͺ ΓΊοΊ
= Γͺοͺ ΓΊοΊ
Γͺοͺ ΓΊοΊ
Γͺοͺ ΓΊοΊ
Γͺοͺ ΓΊοΊ Γ«ο« Γ»ο»
by using linspace, zeros, ones and the transpose operator. Do not type in the individual elements
explicitly.
NOTE: You may transpose a vector/matrix using transpose([x y]) or a single quote [x y]β
17. Create the following matrix π given as
123456
7 8 9 10 11 12
13 14 15 16 17 18
Q
Γ©ο© ΓΉοΉ
Γͺοͺ ΓΊοΊ =
Γ«ο« Γ»ο»
From this create the following variable:
Create a six element row vector named X that contains the elements of the second row of π.
18. Using zeros, and ones commands create the following matrix
π =
1 1 1 1
0 0 0 0
0 0 0 0
1 1 1 1
.
19. Given matrices π = 1 1
1 1 and π = 0 0
0 0 , create the matrix π such that
π = [π π].
20. Base on the matrices π, π in question 19 create a matrix π such that
π = π π
π π .

