Color map in polar axes
20 ビュー (過去 30 日間)
古いコメントを表示
I have a circular paper. I measure certain acoustic response on that paper. The measurement is taken by a stack of measuring instrument that move from one radial end to other radial end of the paper. So, I have the data in cartesian coordinates but I need to represent it in circular coordinates since the original material is circular in shape. And the plot needs to be a color map (like how pcolor does for cartesian plots). How do I make such color map in a circular plot?
I ave enclosed the X and Y axis values along with the corresponding measured data as TT in the attached excel file. They are in cartesian coordinate. I need to plot them as a color map such that it shows how the measured data is distributed over the circular paper.
0 件のコメント
回答 (2 件)
KSSV
2017 年 9 月 19 日
Read about cart2pol. This function converts your cartesian coordinates to polar coordinates and then you can use surf or pcolor.
5 件のコメント
Aaron Anderson
2017 年 9 月 19 日
I am also looking for a solution. I am thinking of maybe using the pcolor with the cartesian coordinates and then somehow overlaying a polaraxes object. Though this is appearing to be a lot more work than I had initially anticipated. There is also no way to linkaxes (if that would do anything), as they are not the same coordinate systems.
Aaron Anderson
2017 年 9 月 20 日
編集済み: Aaron Anderson
2017 年 9 月 20 日
I haven't tested it completely yet but it seems like it will do what we want. To be clear though you will have to convert from cart2pol first.
Just make sure your theta and R are 1xN matrices.
参考
カテゴリ
Help Center および File Exchange で Polar Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!