필터 지우기
필터 지우기

problem with parfor loop

조회 수: 1 (최근 30일)
freebil
freebil 2013년 10월 2일
댓글: Matt J 2013년 10월 3일
Is it possible to parfor this?
for iter=1:50
for i=1:100
x(:,i)= rand(3,1)
end
end

채택된 답변

Matt J
Matt J 2013년 10월 2일
편집: Matt J 2013년 10월 2일
Sure, especially since the outer loop is not doing anything and can be abandoned.
parfor i=1:100
x(:,i)= rand(3,1)
end
  댓글 수: 6
freebil
freebil 2013년 10월 3일
x(iter,i)= rand(1) with parfor??
Matt J
Matt J 2013년 10월 3일
편집: Matt J 2013년 10월 3일
You can do it, but doing it without loops
x=rand(50,100);
will be faster.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by