hi, i'm running the code without errors but getting blank plots can't figure out where is the problem

답변 (1개)

Hiro Yoshino
Hiro Yoshino 2021년 1월 14일

0 개 추천

figure;
subplot(3,1,1);
plot(th7,th6,'g','linewidth',2);grid
xlabel('{ \theta_{7}} [deg]');
(th7, th6) is a point - try this one:
figure;
subplot(3,1,1);
plot(th7,th6,'o');grid
xlabel('{ \theta_{7}} [deg]');

댓글 수: 4

Kyrillos Fathi Kamal
Kyrillos Fathi Kamal 2021년 1월 14일
thanks for replying sir, but gives a small circle not the entire plot that the code should give
Hiro Yoshino
Hiro Yoshino 2021년 1월 14일
That is because the variables you're using, th7 and th6, are not vectors.
If that is not what you expected, then you must have made mistakes somewhere.
Hiro Yoshino
Hiro Yoshino 2021년 1월 14일
I suggest you use "break points" so that you can check and see what's going on.
Kyrillos Fathi Kamal
Kyrillos Fathi Kamal 2021년 1월 14일
ok will check and see, thanks

댓글을 달려면 로그인하십시오.

카테고리

태그

질문:

2021년 1월 14일

댓글:

2021년 1월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by