MATLAB: Neural network of a single layer

Deep Learning Toolboxneural network

How do I form a neural network with a single layer, so that it wont contain any hidden layer.

Best Answer

net = feedforwardnet;
net.numLayers = x
x is the required number of layers. Here 1.