When using polarplot, why does the argument come before the modulus?
古いコメントを表示
I thought the convention for polar coordinates was (r,theta), not (theta, r)?
Is there a reason for this, or was this question a waste of space?
採用された回答
その他の回答 (1 件)
Steven Lord
2019 年 10 月 20 日
0 投票
The polarplot function is using the same convention as the older polar function, with theta as the first input argument and rho the second. I'm not completely certain why polar uses that ordering (that function was introduced before I joined MathWorks) but if I had to guess I'd guess it was for similarity to plot.
The plot function accepts x and y coordinates and plots (effectively) y = f(x).
The polar function accepts theta and rho coordinates and plots (effectively) rho = f(theta).
The polarplot function accepts theta and rho coordinates and plots (effectively) rho = f(theta).
カテゴリ
ヘルプ センター および File Exchange で Polar Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!