In my code, I use parfor to call a function, and then concatenate the result to the others in a matrix:
parfor i=1:num+1
result=function1(i);
X=[X,result];
end
The thing is that X is ordered, just like i need. Parfor always works like that and concatenates in order? or is pure luck?

답변 (1개)

Steven Lord
Steven Lord 2019년 1월 7일

3 개 추천

See this documentation page for the answer to your question.

카테고리

도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

질문:

2019년 1월 7일

답변:

2019년 1월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by