Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clear all
- close all
- clc
- load opamp_wh.mat
- uuu1 = 2 * ones(size(uuu2));
- t = 0:0.01:5;
- R = 100;
- P=[uuu1 ;uuu2 ;uuu3];
- T=yyy;
- net=newlind(P,T);
- w = net.IW{1,1};
- R1d = -R/w(1)
- R2d = -R/w(2)
- R3d = -R/w(3)
- lr = maxlinlr(P);
- lin=newlin(minmax(P),1,[0],lr); % neuronul liniar creat este pregatit pt a fiantrenat cu subrutina "learnwh"
- lin.trainParam.epochs=1000;
- lin.trainParam.goal=0.0005;
- lin.trainParam.show=inf;
- [lin,tr] = train(lin,P,T);
- w = lin.IW{1,1};
- R1t = -R/w(1)
- R2t = -R/w(2)
- R3t = -R/w(3)
- figure (1)
- plot(t,P,t,T);grid;
Advertisement
Add Comment
Please, Sign In to add comment