如何使此程序正常运行?
이전 댓글 표시
h=6:2:18; %一个1*7的double
t=[18,20,22,25,30,28,24;15,19,24,28,34,32,30]; %一个2*7的double
x=6.5:2:17.5; %一个1*6的double
y=interp1(h,t,x,'spline'); %用“3次样条插值求近似值”
错误使用 interp1>reshapeAndSortXandV
LENGTH(X) 和 SIZE(V,1) 必须相同。
出错 interp1 (第 128 行)
[X,V,orig_size_v] = reshapeAndSortXandV(X,V);
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 插值에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!