Is there a way to perform a do-while?

Simplicity picture Simplicity · Feb 17, 2013 · Viewed 24.9k times · Source

I'm planning to use a do-while loop in MATLAB.
Is there a way to do that?

Answer

Abhishek Thakur picture Abhishek Thakur · Feb 17, 2013
while(true)

%code

    if condition==false
        break; 
    end 
end