MATLAB: Is the GUI program producing an error when I ‘Run’ it

Whenever i run .m file,it shows following error.How can i remove this?
my code is linked here named charGUI10.m. and the error is shown in the picture named capture.png

Best Answer

The error message states that the function plotchar isn't found.
>> plotchar
'plotchar' requires Character Recognition Example.
>> which plotchar -all
<snip>\Documents\MATLAB\Examples\nnet\appcr1\plotchar.m
>>
Possible measures
  • add <snip>\Documents\MATLAB\Examples\nnet\appcr1\plotchar.m to the path.
  • make a copy of plotchar with a slighly different name, e.g. plotchar2, and replace plotchar by plotchar2 in charGUI10.m. I would have done that to avoid messing with the examples.