Why is my 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

3 件のコメント

Bruno Luong
Bruno Luong 2018 年 12 月 1 日
@ NAWSHIN MANNAN PROMA The Tags field is not intended to put code.
Rik
Rik 2018 年 12 月 1 日
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
per isakson
per isakson 2018 年 12 月 1 日
I deleted the flag because the question is perfectly clear to me.

サインインしてコメントする。

 採用された回答

per isakson
per isakson 2018 年 12 月 1 日
編集済み: per isakson 2018 年 12 月 2 日

1 投票

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.

その他の回答 (1 件)

NAWSHIN MANNAN PROMA
NAWSHIN MANNAN PROMA 2018 年 12 月 2 日
編集済み: NAWSHIN MANNAN PROMA 2018 年 12 月 2 日

0 投票

Got the point. I don't have plotchar.m file. Now how can i create a plotchar.m file to run the feature extract button? i need to recognize habdwritten numbers.Capture1.PNG

3 件のコメント

per isakson
per isakson 2018 年 12 月 2 日
編集済み: per isakson 2018 年 12 月 2 日
Did you try to reproduce the commands I showed in my answer?
Did you try anything of Possible measures ?
NAWSHIN MANNAN PROMA
NAWSHIN MANNAN PROMA 2018 年 12 月 2 日
yes, i tried but it didn't work,i got the same error.
per isakson
per isakson 2018 年 12 月 2 日
編集済み: per isakson 2018 年 12 月 2 日
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?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeGraphics Object Properties についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by