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

4 次查看(过去 30 天)
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?

采纳的回答

MathWorks Support Team
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Deep Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by