Effacer les filtres
Effacer les filtres

Error using / Matrix dimensions must agree...

2 vues (au cours des 30 derniers jours)
Nedra Ebdelli
Nedra Ebdelli le 11 Mai 2015
Hi,
The content of my script is the flowing
parfor i = 1:26
run('..\extract'+i+'.m')
end
the error is Error using ==> plus Matrix dimensions must agree
Error in ==> parallel_function at 473 F(base, limit);
Thanks.

Réponse acceptée

Titus Edelhofer
Titus Edelhofer le 11 Mai 2015
Hi,
MATLAB is not Java ;-).
Concatenating strings uses [] in MATLAB:
run(['..\extract' num2str(i) '.m'])
Titus

Plus de réponses (1)

Nedra Ebdelli
Nedra Ebdelli le 11 Mai 2015
Thanks for the response ("i'm beginner with matlab ") and I just use it to execute some files from java.

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by