Too many input arguments.
17 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
% 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 Commento
Kevin Chng
il 6 Dic 2018
there is double cd.
eval(sprintf('cdcd %s', cfileDir));
However, why do you use eval?
Risposte (2)
Walter Roberson
il 6 Dic 2018
your work directory name contains a space.
you should recode without eval()
0 Commenti
Image Analyst
il 8 Ago 2022
Don't use eval. Try it this way:
cfileDir = fullfile(workDir, 'ElasticMeasure', 'DanEllis');
cd(cfileDir);
mex dpcore.c;
cd(workDir);
0 Commenti
Vedere anche
Categorie
Scopri di più su Write C Functions Callable from MATLAB (MEX Files) in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!