Info

This question is closed. Reopen it to edit or answer.

Plotting the Szegocurve in Matlab, beginner

1 view (last 30 days)
Thijs Roebroek
Thijs Roebroek on 4 Apr 2012
Closed: MATLAB Answer Bot on 20 Aug 2021
Hello, i'm a 1st bachelor student biochemics and biotechnology and we have an assignment for math in matlab. In one of the exercises i have to plot the roots of the polynome of exp(x) devided by n (where n = grade). It says that when n reaches a great number, the curve will look similar to the Szegocurve (demonstrations.wolfram.com/SzegoeCurve/) The Szegocurve:
abs(z*exp(1-z)) = 1 , abs(z) =< 1
I can plot functions like y = x², but i really dont have a clue of how to plot this szegocurve. This is what I have thus far:
z = -1:0.1:1
p = abs(z.*exp(1-z)) - 1
r2 = roots(p)
plot(real(r2),imag(r2))
this part doesn't give me the right curve (P.S. If someone else of my class reads this question, don't copy this or we'll both get a zero ;-) )

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!