matlab

  • Code: RSM.m function [bb]=RSM(filename) %read the data p l form the file name bb=load(filename); x=[bb.x]'; f=[bb.f]'; A=x.^0; %make the matrix A for i=1:bb.p A=[A x.^i]; End %solve the  Polynomial coefficients using least squa…
    1237 浏览