how to write fraction function in complex plane by using matlab
Show older comments
Hi
I worked in ploting function defined in complex plane by using matlab I know we can write the polynomial in matlab by using its coefficients
for example f(z)= (2-8i)Z^3+(2+3i)Z^2 + (1+5i)Z+ (3-4i) this equation can be written in matlab as p=[(2-8i) (2+3i) (1+5i) (3-4i) ],. But when we find this equation f(z)= (2-8i)/Z^3+(2+3i)/Z^2 + (1+5i)/Z+ (3-4i) how can I write this equation in matlab? I mean here the complex variables in the Denominator
Thanks
1 Comment
Benjamin Thompson
on 8 Feb 2022
MATLAB supports complex numbers. See documentation on the topic "complex". Are you trying to write the equation symbolically using the Symbolic Toolbox, or numerically to calculate answers at specific values of Z or to plot over a range of the complex plane?
Accepted Answer
More Answers (1)
Sphiwe
on 15 Oct 2023
0 votes
num = [1]
den= conv([1 3 5], [1 3], [1 5])
g = tf (num,den)
[z,p,k] = tf2zp(num,den)
pzmap(g)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!