% This code solves the NLS equation with the split-step method % idu/dz - sgn(beta2)/2 d^2u/d(tau)^2 + N^2*|u|^2*u = 0 % Written by Govind P. Agrawal in March 2005 for the NLFO book %---Specify input parameters clear all; % distance = input(’Enter f
三维航迹的最小二乘拟合 clc clear load t load X load Y load Z figure(1); plot(t,X); title('时间和X位移关系图'); xlabel('t/s'); ylabel('x/m'); ax=polyfit(t,X,10); axd=polyder(ax); xbest=polyval(ax,t); xdbest=polyval(axd,t); save ax; save axd; save xbest; save xdbest; ho