Interpolation of grid data inside of an ellipse
3 ビュー (過去 30 日間)
古いコメントを表示
I have a plot of an ellipse with gridded data inside. the grid data is not uniformly distributed so there are squares with different size. I would like to interpolate these squares with the ellipse. As you can see in the second figure, there is a gap between the ellipse and last produced squares. How can I properly mergethe last square to the edge of the ellipse? I have 2 vectors which are xS (360*1) and yS(360x1) that has coordinates of edge of ellipse. I have another two matrix has the corners of each square such as CoordsX (2172x4) and CoordsY (2172x4).![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/382853/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/382853/image.png)
2 件のコメント
KSSV
2020 年 10 月 16 日
You can increase the resolution and use inpolygon to get the points lying inside the ellipse.
Or generate scattered data inside the ellipse.
Prabhan Purwar
2020 年 10 月 23 日
Hey,
I do agree with KSSV, increasing resolution along with inpolygon should work. Could you attach your implementation code so that we can suggest something better?
Thanks
回答 (0 件)
参考
カテゴリ
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!