using parfor loop

1 visualizzazione (ultimi 30 giorni)
Scott
Scott il 28 Mar 2012
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

Risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by