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

test_SRMR fails when it calls for the 'preprocess' function #2

Closed
wangxiaobaobao opened this issue Jan 2, 2016 · 2 comments
Closed

Comments

@wangxiaobaobao
Copy link

Undefined the 'char' type of input parameters corresponding to the function 'preprocess'.

error in SRMR (line 38)
[s, fs] = preprocess(s, fs);

error in test_SRMR (line 6)
[ratio, energy] = SRMR(file);

@jfsantos
Copy link
Member

jfsantos commented Jan 2, 2016

Have you added the directory libs to the MATLAB path before running the tests? Try this, from inside the SRMRToolbox directory:

addpath(genpath('libs'));
addpath('test');
test_SRMR

The function preprocess in this repository supports both the preprocess(filename) and preprocess(s, fs) syntaxes, so the code is correct. If the code above does not work for you, you could have another function called preprocess in your MATLAB path which conflicts with SRMRToolbox.

@wangxiaobaobao
Copy link
Author

It is ok now, thank you very much!

@jfsantos jfsantos closed this as completed Jan 2, 2016
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

2 participants