12.07.2015 Views

Basics of MATLAB and Beyond

Basics of MATLAB and Beyond

Basics of MATLAB and Beyond

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Logical operators & AND| OR~ NOTxor EXCLUSIVE ORany True if any element is non-zeroall True if all elements are non-zeroWe continue the previous example <strong>and</strong> use find to plot the part <strong>of</strong>the peaks function that lies between y = 20 <strong>and</strong> y = 40:clfind = find(20 s = spiral(3)s =7 8 96 1 25 4 3We find the elements <strong>of</strong> s less than 6:>> s> find(s

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!