Search Contact information
University of Cambridge Home Department of Engineering
University of Cambridge >  Engineering Department >  computing help
next up previous contents
Next: for Up: Programming Constructs Previous: if

while

k=1;
while t(k) == 0,
  k=k+1;
end
disp('First nonzero entry in t is', disp(t(k))



© Cambridge University Engineering Dept
Information provided by Tim Love
2006-07-24