Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined function 'subDir' for input arguments of type 'char' #31

Closed
lyzhangjm opened this issue Jan 21, 2015 · 3 comments
Closed

Undefined function 'subDir' for input arguments of type 'char' #31

lyzhangjm opened this issue Jan 21, 2015 · 3 comments

Comments

@lyzhangjm
Copy link

Hi, when I run torrione_ExampleCoatesNg_Kmeans_Mscorid, The error information is:

Undefined function 'subDir' for input arguments of type 'char'.
Error in prtDataGenMsrcorid (line 103)
fList = subDir(cDir,'*.jpg');
Error in torrione_ExampleCoatesNg_Kmeans_Mscorid (line 48)
ds = prtDataGenMsrcorid;

My matlab version is 2012a.
I don't konw why.
Thank you。

@kennethmorton
Copy link
Collaborator

Hi Sorry about this. As a quick fix, please change that to call prtUtilSubDir() instead.

fList = prtUtilSubDir(cDir,'*.jpg');

We will push the changes to the repository soon.

Kenny

@lyzhangjm
Copy link
Author

thank you, but there are error when using prtUtilSubDir:
No appropriate method, property, or field addParameter for class inputParser.
Error in prtUtilSubDir (line 46)
p.addParameter('dirMatch','');
Error in prtDataGenMsrcorid (line 104)
fList = prtUtilSubDir(cDir,'
.jpg');
Error in torrione_ExampleCoatesNg_Kmeans_Mscorid (line 48)
ds = prtDataGenMsrcorid;

@kennethmorton kennethmorton reopened this Jan 21, 2015
@peterTorrione
Copy link
Collaborator

Hi,

This is a MATLAB version issue - unfortunately they changed the calling syntax for inputParser in a recent version of MATLAB.

Can you either:

  1. Update your MATLAB to 2014

or

  1. Replace any calls to addParameter with addParamValue... sorry for the confusion...

Thanks!
-Pete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants