using parfor loop
조회 수: 1 (최근 30일)
이전 댓글 표시
I am trying to run a paralell loop where for every nth iteration of i, j will jump up by a pre-determined amount.
this is my attempt function [x]= displacementsi(i,z,nx,ny) n = 1:nx; m = upsample(n,ny); h = ones(nx,1);
parfor j = filter(h,1,m)
x(1:4)=z((2*i)-(j-2):(2*i)+(j+1))
end end
I get this error
??? Undefined function or variable 'parforstart'.
Error in ==> displacementsi at 4 h = ones(nx,1);
Error in ==> fe_test at 112 [x] = displacementsi(i,displacements,nx,ny);
how can I operate the task as above without the error.
Thanks
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!