Training Neural Networks with MATLAB to Predict Nonlinear System Outputs
First, input a sine signal into the nonlinear system to obtain a set of input-output data, train a neural network, and then use this neural network to predict the output of the nonlinear system. %shenjingwangluoxunlian close all clear ; y_1=0; y_2=0; z_1=0; z_2=0; t1=0:0.05:50; u1=10*sin(2*pi*5*t1); Len=length(u1); yy1=zeros(1,Len); for k1=1:Len z_0=u1(k1); y_0=0.2*y_1/(1.5+0.1*y_1*y_1)-0.4*y_2-0.8*z_1+0.6*z_1*z_2; yy1(k1)=y_0; y_2=y_1; y_1=y_0; z_2=z_1; … Read more