Description
1. Given a vector of samples ๐ = [โ100, โ99, โฆ ,99,100], create a vector ๐ calculated based
on element-ยญโโby-ยญโโelement operations such that ๐ฆ2 = 0.001 ๐ฅ2
‘ + 1. Construct matrix ๐ such
that
๐ =
๐
๐
๐ + ๐
2. The electric field intensity, ๐ธ(๐ฅ), due to a ring of radius ๐
at any point ๐ฅ along the
axis of the ring is given by:
๐ธ ๐ฅ = 9604.5
๐
๐ฅ
๐ฅ2 + ๐
2
3
2
Given R=6 cm and a row vector ๐ from elements ranging from 2 cm to 6 cm and spacing of
0.01 cm, use element-ยญโโby-ยญโโelement operations to calculate a row vector ๐ whose elements are
๐ฆ2 = ๐ธ(๐ฅ2). Then construct a matrix of
๐ = ๐
๐
Hint: use โformat longgโ to see the significant digits (otherwise youโll just see 0.0000)
3. The voltage ๐(๐ก) in Volt and the current ๐(๐ก) in Amp ๐ก seconds after closing the switch in
an RC circuit are given by
๐ ๐ก = 24 1 โ ๐E F
GH
๐ผ ๐ก = 24
๐
๐E F
GH
given ๐
= 3800 ฮฉ and ๐ถ = 4000ร10EN F. Create a row vector ๐, with values of times from 0
to 20 sec with spacing of 2 sec, and use it to create row vectors ๐ and ๐ such that ๐ฅ2 = ๐(๐ก2)
and ๐ฆ2 = ๐ผ(๐ก2). Then construct a matrix of
๐ =
๐
๐
๐
4. Two vectors are given as
๐ฎ = โ1๐ข + 2.5๐ฃ + 0.5๐ค
๐ฏ = +1๐ข + 0.2๐ฃ + 2๐ค
Compute the dot product as ๐ = ๐ฎ โ
๐ฏ.
5. Use cross() to compute the vector cross product as ๐ = ๐ฎร๐ฏ, where ๐ is a row vector
and ๐ฎ and v are two row vectors defined in question 4.
6. Use Matlab to show that the reciprocals of square numbers produce a convergent series
1
๐’
W
XY%
= ๐’
6
Do this by computing the following sums
๐ = 1
๐’
%[
XY%
, ๐ = 1
๐’
\[
XY%
, ๐ = 1
๐’
%[[
XY%
and placing your answers in matrix ๐ = ๐ ๐ ๐
7. Given two matrices
๐ด =
1 โ1 1
โ1 1 โ1
1 โ1 1
and ๐ต =
10 2 0
3 8 3
1 3 12
Determine ๐ = ๐ด๐ต๐ต_ where the superscript denotes transpose
8. Given two matrices
๐ด =
1 โ3 5
2 2 4
โ2 0 6
and ๐ต =
0 โ2 1
5 1 โ6
2 7 โ1
Determine ๐ = ๐ดE%(๐ด + ๐ต๐ด_)
9. Given matrix ๐ด =
1 โ3 5
2 2 4
โ2 5 6
Let ๐ต be the matrix formed by having each element of A inverted such that ๐ต 2,a = 1/ ๐ด 2,a
Then calculate ๐ = ๐ด๐ต.
10. The following linear set of equations are determined by applying mesh current analysis
to a circuit. Solve the linear set of equations using the \ operator in Matlab
โ44๐% + 10๐’ + 16๐c = โ20
10๐% โ 43๐’ + 6๐c + 12๐d = 0
16๐% + 6๐’ โ 30๐c + 8๐d = 12
12๐’ + 8๐c โ 34๐d = โ40
Let ๐ = [๐% ๐’ ๐c ๐d] be a row vector of the results.

