Z軸情報のマトリクスから曲面近似を行う方法
Show older comments
ある3次元データに対して,各点の高さ情報が入ったマトリクスAがあります.
このAから曲面近似を行いたいと思っています.
Aに沿うようにx座標,y座標の情報をいれたマトリクスx,yを作製し
Matlabヘルプを参考に以下のように書いてみたのですが,うまく動きませんでした.
sf = fit([x, y],A,'poly23')
どうしたら各点の高さ情報マトリクスから曲面近似ができるでしょうか?
ちなみに曲面はほぼ球面の一部となっています.
2 Comments
- Aとx,yはどんなデータですか?
- どんなエラーが出ますか?
- Curve Fitting Toolboxは入っていますか?
load franke
size(x)
size(y)
size(z)
sf = fit([x, y],z,'poly23');
plot(sf,[x,y],z)
mi
on 1 Nov 2021
Accepted Answer
More Answers (0)
Categories
Find more on Curve Fitting Toolbox 入門 in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
