ENEL101 Problem set 2 Mathematical operations

$30.00

Download Details:

  • Name: Assignment-2-igbswd.zip
  • Type: zip
  • Size: 106.38 KB

Category:

Description

5/5 - (1 vote)

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.