[Solved] goto keyword in matlab [closed]


I will write just the skeleton of the code, the rest of the statements must be completed by you. I will use ii and jj instead of i and j because these have special meaning in MATLAB (complex square root of -1).

for ii = 1:101
        % statements
end;

jj = 6;
while true
        for ii = 1:100
                if (cond1) && (cond2) % replace with actual conditions
                        % statements from label 890
                        break;
                end;
        end;
        ii = 101; % useless, but...

        jj = jj+1;
        if cond3  % replace with actual condition
                break;
        end;
end;

for ii = 1:126
        % statements
end;

for ii = 1:126
        % statements
end;

1

solved goto keyword in matlab [closed]