Let's consider a MultiLayer Perceptron (input = 2 nodes; hidden = 2 nodes; output = 1 node). The network's output can be easily calculated in the Feed-Forward architecture, but if there are lateral connections among hidden units (red arrows on the figure attached), how can the output be mathematically expressed and/or implemented (MatLab)?