using surf and pol2cart on matrix
이전 댓글 표시
hello i have a 512x1000 matzrix
the coordinates are there divided into lines (x) as radius and columns (y) as angles. To each point in the matrix belongs a value (z).
How do I get the polar coordinates into cartesian coordinates (pol2cart). And can it plot at the end (with surf?)?
I would like to get in principle from my picture A the picture B

EDIT Forgot Code Example:
angles = (0:pi/8:2*pi)';
radii = 1:10;
[X, Y] = pol2cart(angles, radii)
댓글 수: 1
Adam Danz
2020년 6월 25일
Are the angles vector and the radii vector supposed to be different lengths?
How do those values plot a circle?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Polar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!