NN Tool Example
NN Tool Example
0
0
0
0
1
1
1
0
1
1
1
0
Click File/Import Data to import your input and output data, one at a time, from you local
drive. After this youll see the matrix of your variables under Workspace.
2. To begin using the ANN Tool in Matlab, you can either a) click Start/Toolboxes/Neural
Network/Neural Network Tool, or b) type nntool in the Commend Window.
In the below Network/Data Manager window (it may be slightly different depends on the
version of your Matlab), you can input the data into the Workspace of Matlab, which can then
be used by your ANN.
Click Import, select the data file you wish as the input to your ANN. Under Destination, make
sure the Input Data button is selected. Again, select the data file you wish as the output to
your ANN. Under Destination, make sure the Target Data button is selected.
3. Click New to create your ANN.
If you save your ANN as a .mat file, youll be able to use it in your C++ or C#. This is out of
the scope of this module but feel free to explore the possibilities!
You should follow the above same steps building the XOR network
After the data files are imported into the Matlab workspace, the matrix should be
transposed so that rows of the matrix correspond to the inputs to the ANN.
The command is:
Name_of_you_input_variable = Name_of_you_input_variable
Name_of_you_output_variable = Name_of_you_output_variable