clc, clear all, close all; x=0:0.1:10; y=sin(x); %plot(x,y) net = newff(x,y,5); net.trainParam.epochs = 100; net = train(net,x,y); Y1 = sim(net,x); net2 = newrb(x,y); Y2 = sim(net2,x); figure hold on grid on plot(x,y) plot(x,Y1,'o') plot(x,Y2,'x') hold off gensim(net,0.01)