Too many input arguments.
조회 수: 21 (최근 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!