## addpath not work after compile

on 25 Jun 2011

### Walter Roberson (view profile)

E:\test\test19\forminput\inputdata.m

### Walter Roberson (view profile)

on 25 Jun 2011

You are trying to addpath() a routine that is not in the archive. I would not expect that to work; and if it did work I would consider it to likely be a license violation.

Walter Roberson

### Walter Roberson (view profile)

on 25 Jun 2011
If you are using mcc directly to build the CTF, then use the -I option instead of addpath() http://www.mathworks.com/help/toolbox/compiler/f13-998741.html
If you are using deploytool, you would add the files you need to the Source Files area.
pink

### pink (view profile)

on 25 Jun 2011
yes,I use deploytool, so what if there is a gui (subgui) or sub-functions in a folder, because the condition of my program like that, do I have to remove the folder and put all files with file maingui?
and how to run the gui without a command prompt (DOS) if using deploytool?
Walter Roberson

### Walter Roberson (view profile)

on 25 Jun 2011
I am not familiar with how deploytool is used, sorry.

### Fangjun Jiang (view profile)

on 25 Jun 2011

I wonder if it has anything to do with the fact that input() is a built-in function. Is it possible that you change your function name and re-try?

pink

### pink (view profile)

on 25 Jun 2011
I had several times changed the name sub-gui, but at the time of the compilation results remain the same, why?