MATLAB二维插值问题本人天生愚钝 想用MATLAB搞一个曲面拟合 无奈能力有限 X=[44.48 70.58 90.70 47.50 34.30];Y=[49.18 30.42 15.97 -3.50 12.97];Z=[-40.1 -20.2 -15.6 -16.4 8.2];X1=[44.50 43.60 42.20 41.10 40.30 39.60 38.83 39.15 38
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/15 09:12:23
![MATLAB二维插值问题本人天生愚钝 想用MATLAB搞一个曲面拟合 无奈能力有限 X=[44.48 70.58 90.70 47.50 34.30];Y=[49.18 30.42 15.97 -3.50 12.97];Z=[-40.1 -20.2 -15.6 -16.4 8.2];X1=[44.50 43.60 42.20 41.10 40.30 39.60 38.83 39.15 38](/uploads/image/z/6920042-50-2.jpg?t=MATLAB%E4%BA%8C%E7%BB%B4%E6%8F%92%E5%80%BC%E9%97%AE%E9%A2%98%E6%9C%AC%E4%BA%BA%E5%A4%A9%E7%94%9F%E6%84%9A%E9%92%9D+%E6%83%B3%E7%94%A8MATLAB%E6%90%9E%E4%B8%80%E4%B8%AA%E6%9B%B2%E9%9D%A2%E6%8B%9F%E5%90%88+%E6%97%A0%E5%A5%88%E8%83%BD%E5%8A%9B%E6%9C%89%E9%99%90+X%3D%5B44.48+70.58+90.70+47.50+34.30%5D%3BY%3D%5B49.18+30.42+15.97+-3.50+12.97%5D%3BZ%3D%5B-40.1+-20.2+-15.6+-16.4+8.2%5D%3BX1%3D%5B44.50+43.60+42.20+41.10+40.30+39.60+38.83+39.15+38)
MATLAB二维插值问题本人天生愚钝 想用MATLAB搞一个曲面拟合 无奈能力有限 X=[44.48 70.58 90.70 47.50 34.30];Y=[49.18 30.42 15.97 -3.50 12.97];Z=[-40.1 -20.2 -15.6 -16.4 8.2];X1=[44.50 43.60 42.20 41.10 40.30 39.60 38.83 39.15 38
MATLAB二维插值问题
本人天生愚钝 想用MATLAB搞一个曲面拟合 无奈能力有限
X=[44.48 70.58 90.70 47.50 34.30];
Y=[49.18 30.42 15.97 -3.50 12.97];
Z=[-40.1 -20.2 -15.6 -16.4 8.2];
X1=[44.50 43.60 42.20 41.10 40.30 39.60 38.83 39.15 38.71 38.71 38.47 38.47 38.47 38.10 37.58 36.83 35.47 35.05 35.48 34.62 35.48 34.30];
Y1=[49.18 47.48 45.32 43.00 40.78 38.65 36.08 34.20 33.98 33.95 31.90 29.98 29.87 28.05 26.50 24.52 22.80 21.27 19.73 16.40 14.73 12.97];
XYZ是已知值,X1Y1是待求点坐标 Z1是待求值
Z=?
我用interp2函数插值说什么XY不单调什么的……
MATLAB二维插值问题本人天生愚钝 想用MATLAB搞一个曲面拟合 无奈能力有限 X=[44.48 70.58 90.70 47.50 34.30];Y=[49.18 30.42 15.97 -3.50 12.97];Z=[-40.1 -20.2 -15.6 -16.4 8.2];X1=[44.50 43.60 42.20 41.10 40.30 39.60 38.83 39.15 38
X Y分别有5个数据,若是Z=f(X,Y),那么Z就需要25个数据点,才能将曲面画出来,之后插值就容易了