I have rho (2991*1), data (2991*1), and I created theta = (0:0.5:90)*pi/180; to represent a quarter of a circle. I can mesh rho and theta together using meshgrid. but then I don't know how to use my data to be correlated to the mesh?
transform a radius into a circle
조회 수: 4 (최근 30일)
이전 댓글 표시
![](/matlabcentral/answers/uploaded_files/23092/plot%202D%20mesh%20from%20line.jpg)
I have some data along a line in a Cartesian coordinate. I know I can transform the Cartesian into polar coordinates using cart2pol. I would like to know how could I create a grid to map a quarter circle with the data along the initial line (to have a top view)?
thank you
채택된 답변
추가 답변 (2개)
Image Analyst
2014년 12월 26일
Maybe the FAQ???
댓글 수: 5
Image Analyst
2014년 12월 28일
What do you want out? An image (2D array)? A plot/graph?
All I can think of was a not very efficient method based on the FAQ. I hesitate to show it because it's not fast, efficient, or clever. Hopefully someone else will come up with a fast and clever method.
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!