Help Plot Complex Equation
7 views (last 30 days)
Show older comments
Hi, I have a homework but I don't know how to plot this complex function
f=100*((50+40i+(100i*tan(2*pi*l)))/(100+(50i-40)*tan(2*pi*l)))
Can someone help me?
0 Comments
Answers (1)
Roger Stafford
on 4 Jul 2014
Edited: Roger Stafford
on 4 Jul 2014
One possibility is to superimpose two plots using matlab's 'plot' function. One of these would be the real part of f along the y-axis and l (lowercase L) along the x-axis, and the other would do likewise with the imaginary part of f, perhaps using two different colors. You will need the 'real', 'imag', 'linspace', and 'plot' functions in matlab, which you should definitely study carefully if you haven't already done so.
[Added Later]
Another possibility is to use the matlab function 'plot3'. Use 'linspace' to generate a vector of 'l' (lowercase L) values over an appropriate range which you use as the Z, third argument, input. Let X and Y be the corresponding real and imaginary parts of 'f' and use them as the first and second arguments of 'plot3'. As you view the 3D curve, you can imagine the projection of the curve points onto the x-y plane as representing the real and imaginary parts of 'f'.'
Yet another thing to try is to use the 'plot' function to plot just the above X and Y vectors, without displaying their dependence on 'l'. This lets you see the above projection directly.
0 Comments
See Also
Categories
Find more on Annotations 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!