Is there a missing command in the Character Recognition example "Appcr1" within Chapter 11 of the Neural Network Toolbox manual?

2 views (last 30 days)
If I try to execute the code in the "Initialization" section of the "Appcr1" example in Chapter 11 of the Neural Network Toolbox, I receive the following error message:
??? Undefined function or variable 'alphabet'.
Is this the result of a missing function call in the example?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This enhancement has been incorporated in Release 2008b (R2008b). For previous product releases, read below for any possible workarounds:
This is an error in the documentation for the "Appcr1" example in Chapter 11 of the Neural Network Toolbox manual. The block of code in the "Initialization" section of the example should read:
[alphabet,targets] = prprob;
S1 = 10;
[R,Q] = size(alphabet);
[S2,Q] = size(targets);
P = alphabet;
net = newff(minmax(P),[S1 S2],{'logsig' 'logsig'},'traingdx');
This function call will define the alphabet and target variables used by the remainder of the example.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!