hi i try to run matlab code that runs parallel . my problem is .i have 8 for loops and i want these loops to run at the same time because they are independent .any way to do that.my code is
a=imread('x.jpg');[xx,yy]=size(a); while x-1>0 && y-1>0 r=mean-a(x-1,y-1); x=x-1; y=y-1; end %north
while x-1>0 && y<yy r=mean-a(x-1,y+1); x=x-1; end %north west
while x-1>0 && y+1<yy r=mean-a(x-1,y+2); x=x-1; y=y+1; end %west
while x>0 && y+3<yy r=mean-a(x+1,y+3); y=y+1; end %north west while x+3<xx && y+3<yy r=mean-a(x+3,y+3); x=x+1; y=y+1; end %norht
while x-1>0 && y-1>0 r=mean-a(x+3,y+1); x=x-1; y=y-1; end %north east
while x+3<xx && y-1>0 r=mean-a(x+3,y-1); x=x+1; y=y-1; end %eset
while x>0 && y-1>0 r=mean-a(x+1,y-1); y=y-1; end
Best Answer