thetaP=linspace(0, 2*pi);
plot(R1*cos(thetaP), R1*sin(thetaP), '-b', ...
R2*cos(thetaP), R2*sin(thetaP), '-r')
when R1 and R2 are defined

답변 (1개)

Kojiro Saito
Kojiro Saito 2023년 6월 13일

0 개 추천

Your code works fine.
R1=5;
R2=7;
thetaP=linspace(0, 2*pi);
plot(R1*cos(thetaP), R1*sin(thetaP), '-b', ...
R2*cos(thetaP), R2*sin(thetaP), '-r')
Possibly, figure is being off. Please try adding figure before plot.
figure;
plot(R1*cos(thetaP), R1*sin(thetaP), '-b', ...
R2*cos(thetaP), R2*sin(thetaP), '-r')

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

질문:

2023년 6월 13일

편집:

2023년 6월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by