Z軸情報のマトリクスから曲面近似を行う方法
Ältere Kommentare anzeigen
ある3次元データに対して,各点の高さ情報が入ったマトリクスAがあります.
このAから曲面近似を行いたいと思っています.
Aに沿うようにx座標,y座標の情報をいれたマトリクスx,yを作製し
Matlabヘルプを参考に以下のように書いてみたのですが,うまく動きませんでした.
sf = fit([x, y],A,'poly23')
どうしたら各点の高さ情報マトリクスから曲面近似ができるでしょうか?
ちなみに曲面はほぼ球面の一部となっています.
2 Kommentare
- 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
am 1 Nov. 2021
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Curve Fitting Toolbox 入門 finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
