Hi all. I have some problem. look below.
In script, I using trainFCN in ANN.
I think that occured problem in there.
How do I solve this problem ?

 Accepted Answer

Jan
Jan on 7 Jun 2017

0 votes

What do you find in this file in the given line? The error message seems to be clear: The term "FCN" was not defined before. The forum cannot guess, why this happens. Either inspect the file by your own or explain any details about what you do.

17 Comments

In 292 line, trainbr is occured error. I'm sorry. I had to upload the script in advance.
Jan
Jan on 8 Jun 2017
The term "FCN" does not appear here.
I'm sorrry.
FCN = trainFcn.
Are you still having difficulty? If so then please attach the actual code -- not a picture of what the code was at one time.
Jan
Jan on 8 Jun 2017
Sorry, I cannot follow you. Initially the error message was, that "FCN" is not recognized. Then the screenshot shows code, whioch uses 'trainbr' as input for narxnet, but no "FCN" anywhere. Exatcly at this point the attached code contains the variable "FCN" now, which contains the string 'trainbr', but is has less than 292 lines of code. This means, that 3 different versions of your code are concerned. And you get the same error message with these different codes?
Picture is different with attached code. sorry;;. In attached code, 27th line is occured error in FCN. Initially FCN is defined 19th line. Got it? And error is like "FCN is not the name of a function on the MATLAB path." And What is mean of 3 different versions of your code? Is FCN, trainFcn, trainbr => 3 versions ?
In Technical Support Team of mathworks, This code is possible deploy and success. They have window 10. But I have window 7. Is problem related with this winodw version?
Jan
Jan on 8 Jun 2017
The error message is important. Please post it completely. "27th line is occured error in FCN" does not allow to understand, what's going on.
Jeong_evolution
Jeong_evolution on 9 Jun 2017
Edited: Jeong_evolution on 9 Jun 2017
This figure is my work flow and error screen. Does this figure help for you?
Jeong_evolution
Jeong_evolution on 9 Jun 2017
Edited: Jeong_evolution on 9 Jun 2017
And Have you tried deploy using my script and DB(Data Base) ? Also you occur same error?
And I trying continuously .. but situation is not progressing.
The problem does not occur for me in R2017a on OS-X El Capitan operating system. I did, however, need to make minor changes to the code because the input file you gave is not a valid .csv file. I suggest you consider making the same change to csvread that I needed to use for Mac. I did not test under Windows so I am not positive that the change I made to your xlsread command will work.
I can see that you are using MS Windows but I cannot tell which operating system or which MATLAB release you are using.
Finally, Are You think the problem is just difference of window environment ? Mr.Roberson.
I do not know. Try making the change to using csvread, then make sure it runs interactively for you, and then try with the Compiler app.
Which MATLAB version are you using, and which version of Windows are you using?
First, I working on windows 7. And I tried windows 7 & winodows 8. The same problem occured in 7 & 8. And I will try your solution. Thanks.
Which version of MATLAB are you using?
I use R 2016 a.

Sign in to comment.

More Answers (1)

Walter Roberson
Walter Roberson on 10 Jun 2017

0 votes

The ability to deploy applications that train networks was not added until R2016b.

3 Comments

Jeong_evolution
Jeong_evolution on 10 Jun 2017
Edited: Jeong_evolution on 10 Jun 2017
So, Is it possible deployment from R2017a?
Yes.
I get a R2017a. So deploy is completed. It runs on Winows 8.1 K. But, In windwos 7, When I run .exe file, there is no reaction. So, I checking the script and so on. Thanks Mr. Roberson.

Sign in to comment.

Categories

Community Treasure Hunt

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

Start Hunting!