필터 지우기
필터 지우기

Error using / Matrix dimensions must agree...

조회 수: 2 (최근 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 CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by