MATLAB fit曲面拟合结果评估poly

close all;
for i=1:5
    for j=1:5
        poly=['poly',num2str(i),num2str(j)];
        fitobject1 = fit([x1,y1],z1,poly);
        whole1nh=[fitobject1(x,y)];
        goodnessfit(i,j) = goodnessOfFit(whole1nh(:),Wholeimage(:),'MSE');
        mesh(Wholeimage)
        hold on
        mesh(whole1nh)
        saveas(gcf,['G:\poly结果评估\',num2str(i),num2str(j),'.jpg']);
    end
     hold off
end

猜你喜欢

转载自blog.csdn.net/weixin_40699340/article/details/80075634