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

A problem for your arff_to_matlab code. #2

Open
tzczsq opened this issue Apr 6, 2016 · 3 comments
Open

A problem for your arff_to_matlab code. #2

tzczsq opened this issue Apr 6, 2016 · 3 comments

Comments

@tzczsq
Copy link

tzczsq commented Apr 6, 2016

Hi, I tried to perform your provided example_read.m on Matlab2015a, but failed. The error information is given as follows:
Why?
Error using arff_read (line 108)
ARFF file not recognized!

Error in example_read (line 14)
[data, relname, nomspec] = arff_read(infile);

@decabyte
Copy link
Owner

Hi @tzczsq not sure what is the problem. You didn't provide any extra information or MWE. I don't have at the moment a Matlab2015a version installed. I tested the code with version 2013a and everything is working fine.

I guess you should try to understand if something changed in the textscan function in version 2015a. PR are welcomed if you can suggest a workaround.

V.

@fkcoder
Copy link

fkcoder commented May 2, 2016

Hi,@tzczsq,I am faced with this issue now ,my matlab version is 2015a too.And I find if the
A = textscan(tline,'%s %s %s','Whitespace',' \t\b{},')(line 104 in arff_read function) is changed into
A = textscan(tline,'%s %s %s'). Then,everything will OK! The code can work!

@decabyte
Copy link
Owner

decabyte commented May 2, 2016

Interesting, @fkcoder can you submit a PR for it? Maybe adding a if-check for the MATLAB version?

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