SP=load (‘testdata.txt’) ; % the name of the data

file containing test cases

idP=SP(: , 1) ;

XP=SP(: , 2:6) ;

YP=sim (net, XP’) ;

disp (‘The predicted values for the test cases are:’) ;

for i=1:length(idP)

disp ([idP(i) , YP(i)]) ;

end

% ------------------------------------------------------------------

% End of program

% ------------------------------------------------------------------



The National Academies | 500 Fifth St. N.W. | Washington, D.C. 20001
Copyright © National Academy of Sciences. All rights reserved.
Terms of Use and Privacy Statement