how to write this code?

6 Ansichten (letzte 30 Tage)
Rihard
Rihard am 18 Dez. 2022
Kommentiert: Rihard am 18 Dez. 2022
Hey,
Can someone help me to write a code that that:
Writes the line of the complex plane formed by the point z when the complex number z^2 moves along the sides of the square whose vertices are located at the points -1-i, 2-i, 2+2*i and -1 + 2*i. In the same figure, write a line formed by points z^2, whose arcs are the same color as the corresponding side of the square.
I made the square but can`t figure out how to get the curved lines.
Thanks for the help!
  4 Kommentare
Torsten
Torsten am 18 Dez. 2022
Bearbeitet: Torsten am 18 Dez. 2022
You must square the sides of the square, not only its corner points:
z1_squared = z1.^2;
plot(real(z1_squared),imag(z1_squared))
Rihard
Rihard am 18 Dez. 2022
Thank you very very much!!

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by