Too many input arguments.
23 次查看(过去 30 天)
显示 更早的评论
% 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 个评论
Kevin Chng
2018-12-6
there is double cd.
eval(sprintf('cdcd %s', cfileDir));
However, why do you use eval?
回答(2 个)
Walter Roberson
2018-12-6
your work directory name contains a space.
you should recode without eval()
0 个评论
Image Analyst
2022-8-8
Don't use eval. Try it this way:
cfileDir = fullfile(workDir, 'ElasticMeasure', 'DanEllis');
cd(cfileDir);
mex dpcore.c;
cd(workDir);
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!