Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello kindly solve below using MATLABWrite and compile a MATLAB . m file that satisfies the following requirements Compute the vilue of the following andwmatical

Hello kindly solve below using MATLABWrite and compile a MATLAB .m file that satisfies the following
requirements
Compute the vilue of the following andwmatical expor wsions and slore the risult int the
indicalod wariable rames
a.2425-12 stare the rosult iat the variahle result_a.
&.(2) store the resalt in the variable resul:_la.
c.2rh+2ar2, slore the resull in the variable rosult_c
Noke that:
r=1x,1, and
h=3x
Find the rooss of the polyromial
f(x)=x3,7x+6
Ly following the stepsi below
a. First create a row vector with the couficients and store in a var iatile callud
#yPoly.
B. Ule the roos// functios with myPoly as ant argument to calculate the roots.
c. Store the roots in the variable called myPoots.
Define an array if 3 complex tumbers add slore them in a row vector variable called z.
lay following, lwelow steps
a. Crovale ote array called x with three dements 1,2 and 3.
B. Crate obe array callud y with three slomonts -1,5 and 12.
c. Use the complex functios to define the array of coetplex nambers.
The sur operator has two logical expression as operands. The result of an xor operation
is true if enly one of both opweraids is truk; it is falbe if looth are true or both are fabe.
a. Astign the experssite (24) to at vartatle caBod x
b. Avign the exprossion 'd'm'C' to a variahle callikd y.
c. Check if abr [x,y) isi true using NATLLB a futction.
Fillow the sheps betow to create itsifustidst wilveform
ls. Aosign 0.7 to the var iable T (period).
c Assign 1.5 to a var ialie caled phi [t. phase)]
Calculate the frequetscy uhitg, the folowing formula and awifign to the
variahle f:(f=T)
e. Calculate the alig-lar frequevcy wa uing the formula we2nf atd assign to
variahle oemega.
[. Crodee the victor titee named t usimg limopace command with 150 poiets in the
ratge from 0 to 2.6
Crwate the vecter voltage named v using, the following equwatiorr v=Assin(o o 1
).
h. Plot voltage fy-asis) against tlime (x-axis)
i. Mh tille, x-axis and y-axis labls as followsic
Title: Voltage with pasilive pluse'
x-axis Latwl: Time [swockids)]
y-acoisi lahel: 'Vologer [vilui]
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions