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

if

if (all(abs(t) >0),
   lt = log(t);
else
   disp('There are zeroes in t');
end



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