What does it mean for THETA and RHO to be the same size?

I am trying to make a spirographic plot by identifying values for t and r, but when I use the function polar to plot them I receive the message "Error using polar THETA and RHO must be the same size." What does this mean and how can I fix it?

 채택된 답변

Geoff Hayes
Geoff Hayes 2015년 12월 6일

0 개 추천

Bella - the error message is telling you that the theta and rho inputs to the polar function must be of the same size or dimension. If the (for example) theta input is an nx1 array, then so must be the rho input. Ensure both are the same size and try again!

댓글 수: 1

To add to this: theta is the first argument and rho is the second argument.

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

추가 답변 (1개)

doghri ahmed
doghri ahmed 2016년 8월 18일

0 개 추천

above what was mentioned above make sure that they are of the same shape too: both either column or row vectors.

카테고리

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

제품

질문:

2015년 12월 6일

답변:

2016년 8월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by