Interface#
Installing the toolbox will not make any addition to the MATLAB® window.
The changes will be a new library in the Simulink® Library Browser and new functions in MATLAB® under the NeuromorphicControlToolbox namespace.
Simulink® Interface#
In Simulink® the new library packaged in the toolbox will appear in the Library Browser as follows :
Adding a block can be done via the usual way of dragging from the Library Browser or double clicking. Most of the block are located in sublibraries that can be accessed by double clicking or by using the Library Browser sidebar.
Similar to classical libraries, the blocks can be accessed and placed programatically using standard MATLAB® commands (see add_block() documentation for details).
A general example of adding a library block to a model is the following MATLAB® command :
add_block("neuromorphic_blocks/{path_to_block_in_library}","{target_model}/{path_in_target_model}")
MATLAB® Interface#
The MATLAB® additions of the toolbox are a set of functions under the NeuromorphicControlToolbox namespace.
They can be accessed directly using the full path of the function like so :
NeuromorphicControlToolbox.{subnamespace}.{func}({func_args})
To avoid writing such long function calls, the import statement allows to specify the full namespace once then either only call the function by name or by only using a subnamespace depending on the import statement.
import NeuromorphicControlToolbox.{subnamespace}.{func} % Import only the specified function
import NeuromorphicControlToolbox.{subnamespace}.* % Import all functions in the subnamespace
import NeuromorphicControlToolbox.* % Import all subnamespaces