Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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. 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 blackboardStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started