Question: use matlab Create a Matlab script and save it as HW7.m. The script file will do the following: Make sure to echo all the values

use matlab Create a Matlab script and save it as HW7.m. Theuse matlab

Create a Matlab script and save it as HW7.m. The script file will do the following: Make sure to echo all the values by omitting ";". 1. Declare a variable called z1 where 21= 3+2i. 2- Declare a variable called 22 using complex() command where 22=5-2i. 3- Declare a variable called 23 where 23= 5e . 4- Perform the following operations a. 24=z1+z2. b. z5=21*22. C. Z6=z1/z2. 5- Get the following using readily available Matlab commands a. Real part of z3 b. Imaginary part of z3 C. Angle of z5 in radian. d. The magnitude of 26 e. The complex conjugate of 22. 6- Now you need to plot 2cos(5t) and 2sin(5t) using complex function e Include ";" as its vector length is long a. Create a sequenced vector starts from 0 to 2 with a step size or 0.001. b. Define f(t) = 2et. C. Define f1(t) to be the real part of f(t) using readily available Matlab commands. d. Define f2(t) to be the imaginary part of f(t) using readily available Matlab commands. e. Plot f1(t) on subplot(2,1,1) and show the grid. f. Plot f(t) on subplot(2,1,2) and show the grid. Submit the script as an M file via blackboard

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!