Error using / Matrix dimensions must agree...

1 回表示 (過去 30 日間)
Nedra Ebdelli
Nedra Ebdelli 2015 年 5 月 11 日
回答済み: Nedra Ebdelli 2015 年 5 月 11 日
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.

採用された回答

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

その他の回答 (1 件)

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

カテゴリ

Help Center および File ExchangeParallel for-Loops (parfor) についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by