Setup and run flexible neural networks in MATLAB