using parfor loop
1 view (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!