Too many input arguments.
46 views (last 30 days)
Show older comments
% compile a c file
cfileDir = fullfile(workDir, 'ElasticMeasure', 'DanEllis');
eval(sprintf('cdcd %s', cfileDir));
mex dpcore.c;
eval(sprintf('cd %s', workDir));
Command window:
Error using cd
Too many input arguments.
Help me please.
1 Comment
Kevin Chng
on 6 Dec 2018
there is double cd.
eval(sprintf('cdcd %s', cfileDir));
However, why do you use eval?
Answers (2)
Walter Roberson
on 6 Dec 2018
your work directory name contains a space.
you should recode without eval()
0 Comments
Image Analyst
on 8 Aug 2022
Don't use eval. Try it this way:
cfileDir = fullfile(workDir, 'ElasticMeasure', 'DanEllis');
cd(cfileDir);
mex dpcore.c;
cd(workDir);
0 Comments
See Also
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!