Z軸情報のマトリクスから曲面近似を行う方法
Afficher commentaires plus anciens
ある3次元データに対して,各点の高さ情報が入ったマトリクスAがあります.
このAから曲面近似を行いたいと思っています.
Aに沿うようにx座標,y座標の情報をいれたマトリクスx,yを作製し
Matlabヘルプを参考に以下のように書いてみたのですが,うまく動きませんでした.
sf = fit([x, y],A,'poly23')
どうしたら各点の高さ情報マトリクスから曲面近似ができるでしょうか?
ちなみに曲面はほぼ球面の一部となっています.
2 commentaires
- 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
le 1 Nov 2021
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Curve Fitting Toolbox 入門 dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
