net = results.net inputs = results.inputs
% Say 'net' is the network. Assume you want the output of layer 'i'. net.outputConnect(i) = 1 % Modifies the architecture to set layer 'i' as an additional output. out = sim(net, inputs) % the activations of i-th layer are now included in the output vector.
X = inputs; % Initialize 'X' as inputs. Each layer's values will be computer into 'X'. % Layer 1 X = net.IW{1,1} * X + net.b{1}; % Compute the values of layer 1. Use 'net.IW' (input weights) X = tansig(X) % apply whichever is the activation function of layer 1. % Layer 2 X = net.LW{2,1} * X + net.b{2}; % compute the values of layer 2. Use 'net.LW' (layer weights) X = logsig(X) % apply whichever is the activation function of layer 2. % layer 3 X = net.LW{3,2} * X + net.b{3} % same of for layer 2 X = softmax(X) % apply whichever is the activation function of layer 3. % 'X' now contains the activations of the third layer in the network.
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.