Why is my GUI program producing an error when I 'Run' it
2 views (last 30 days)
Show older comments
NAWSHIN MANNAN PROMA
on 1 Dec 2018
Edited: per isakson
on 2 Dec 2018
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
3 Comments
Rik
on 1 Dec 2018
What does the line of code below return? Your GUI is expecting a function with the name plotchar. Do you actually have it?
which plotchar -all
Accepted Answer
per isakson
on 1 Dec 2018
Edited: per isakson
on 2 Dec 2018
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.
0 Comments
More Answers (1)
NAWSHIN MANNAN PROMA
on 2 Dec 2018
Edited: NAWSHIN MANNAN PROMA
on 2 Dec 2018
3 Comments
per isakson
on 2 Dec 2018
Edited: per isakson
on 2 Dec 2018
How do you think that I should know what you tried and in what way it didn't work ???
Two questions: What does
>> plotchar
return? And what does
>> which plotchar -all
return?
See Also
Categories
Find more on Graphics Object Properties in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!