



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Matlab Exercises
Typology: Exercises
1 / 5
This page cannot be seen from the preview
Don't miss anything!




Z = sqrt(3)exp(ipi/4)
Z = 1.2247 + 1.2247i
Ztwo = 2exp(ipi/6) Ztwo = 1.7321 + 1.0000i Zthree = sqrt(3)exp(i3pi/4) Zthree = -1.2247 + 1.2247i Zfour = 2exp(ipi) Zfour = -2.0000 + 0.0000i Zfive = 2exp(-i*pi) Zfive = -2.0000 - 0.0000i abs(Z) ans =
abs(Ztwo) ans = 2 abs(Zthree) ans =
abs(Zfour) ans = 2 abs(Zfive) ans = 2
2.0000 + 0.2000i
plot(Z) plot(Z^2,'ro') Z2 = Z^ Z2 = 3.9600 + 0.8000i plot(Z2,'ro') Z3 = Z^ Z3 = 7.7600 + 2.3920i Zhalf = Z^(1/2) Zhalf = 1.4160 + 0.0706i
lows = [57 58 57 61 60 52 50 57 50 53 54 52 58 63 55 48 53 53 52 50 50 57 51 50 56 46 54 54 57 54 55]
lows =
Columns 1 through 22
57 58 57 61 60 52 50 57 50 53 54 52 58 63 55 48 53 53 52 50 50 57
Columns 23 through 31
plot(x,highs) Error using plot Vectors must be the same length.
x = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31]
x =
Columns 1 through 22
Columns 23 through 31
plot(x, highs) hold on
plot(x, lows)