MATLAB: If any variables empty in workspace, continue

loopvariable

There have been times when this would be useful…
How can I continue in a for loop to the next index when any variable in the workspace is empty?
something like:
if isempty(anyvar) == 1;
continue
end

Best Answer

you can use while loop
while isempty(anyvar)
your code
end