Generate MATLAB function for simulating shallow neural network
This function generates a MATLAB® function for simulating a shallow neural network. genFunction
does not support deep learning networks such as convolutional or LSTM networks. For more
information on code generation for deep learning, see Deep Learning Code Generation.
genFunction(
generates a complete stand-alone MATLAB function for simulating a neural network including all settings, weight and bias
values, module functions, and calculations in one file. The result is a standalone MATLAB function file. You can also use this function with MATLAB
Compiler™ and MATLAB
Coder™ tools.net
,pathname
)
genFunction(___,'MatrixOnly','yes')
overrides the default
cell/matrix notation and instead generates a function that uses only matrix arguments
compatible with MATLAB
Coder tools. For static networks, the matrix columns are
interpreted as independent samples. For dynamic networks, the matrix columns are interpreted as
a series of time steps. The default value is 'no'
.
genFunction(___,'ShowLinks','no')
disables the default
behavior of displaying links to generated help and source code. The default is
'yes'
.