Error using / Matrix dimensions must agree...
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Titus Edelhofer
2015-5-11
Hi,
MATLAB is not Java ;-).
Concatenating strings uses [] in MATLAB:
run(['..\extract' num2str(i) '.m'])
Titus
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Parallel for-Loops (parfor) 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!