15.11.2014 Views

Chapter 4: Programming in Matlab - College of the Redwoods

Chapter 4: Programming in Matlab - College of the Redwoods

Chapter 4: Programming in Matlab - College of the Redwoods

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Section 4.1 Logical Arrays 289<br />

4.1 Answers<br />

1.<br />

3.<br />

5.<br />

>> v>w<br />

ans =<br />

0 1 0 1<br />

>> v> v==w<br />

ans =<br />

0 0 1 0<br />

11.<br />

13.<br />

>> (A>3) & (A> ~(A> A>14<br />

ans =<br />

1 1 0 0 1<br />

1 0 0 0 1<br />

0 0 0 1 1<br />

0 0 1 1 0<br />

0 1 1 0 0<br />

>> P((P

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

Saved successfully!

Ooh no, something went wrong!