I have a while loop in which I have two for loops. I have a condition in the innermost for loop. Whenever that condition is satisfied I want to exit from both the two for loops and continue within the while loop:
while (1)
    for x=1:20
        for y=1:30
            if(condition)
            end
        end
    end
end
Does Matlab have something like a labeled statement in Java, or is there another way to do this?