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

조회 수: 2 (최근 30일)
Anthony
Anthony 2023년 10월 18일
댓글: Anthony 2023년 10월 18일
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?

채택된 답변

KSSV
KSSV 2023년 10월 18일
c = 4+1i*0 ;
plot(real(c),imag(c),'*r')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by