Plotting a cartesian equation with an imaginary component of 0*1i

1 vue (au cours des 30 derniers jours)
Anthony
Anthony le 18 Oct 2023
Commenté : Anthony le 18 Oct 2023
Hello,
I have a cartesian equation that I want to plot on a cartesian graph,
c = 4 + 0*1i,
the problem is that it plots it vertically up the y axis 4 units, as shown in the figure (c is the red star, all the way in the top left)
How do I make it plot down the real axis (x-axis) like it is supposed to?

Réponse acceptée

KSSV
KSSV le 18 Oct 2023
c = 4+1i*0 ;
plot(real(c),imag(c),'*r')

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by