Error using / Matrix dimensions must agree...
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nedra Ebdelli
am 11 Mai 2015
Beantwortet: Nedra Ebdelli
am 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.
0 Kommentare
Akzeptierte Antwort
Titus Edelhofer
am 11 Mai 2015
Hi,
MATLAB is not Java ;-).
Concatenating strings uses [] in MATLAB:
run(['..\extract' num2str(i) '.m'])
Titus
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!