Is this code right ? this code is for creating Feedforward neural network in matlab for function approximaton.

1 view (last 30 days)
hello every one.
this code is for function approximation with Feedforward neural network in Matlab R2015b.
Data = xlsread('D',1);
X = Data(:,2:end-1);
Y = Data(:,end);
DataNum = size(X,1);
InputNum = size(X,2);
OutputNum = size(Y,2);
and i was normalize my input and outputs with this formula.
xN = (x - MinX) / (MaxX - MinX) * 2 - 1;
and here is the code for creating the Feedforward neural network with 5 hidden neurons:
pr = [-1 1];
PR = repmat(pr,InputNum,1);
Network = newff(PR,[5 OutputNum],{'tansig' 'purelin'});
this code is Obsoleted or not ? and if it is Obsoleted , which code in R2015b can create the exact above code with all properties above ?
with best regards .

Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!