13.01.2015 Views

Chapter 4: Programming with MATLAB - FET

Chapter 4: Programming with MATLAB - FET

Chapter 4: Programming with MATLAB - FET

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The following switch block displays the point on<br />

the compass that corresponds to that angle.<br />

switch angle<br />

case 45<br />

disp(’Northeast’)<br />

case 135<br />

disp(’Northwest’)<br />

case 225<br />

disp(’Southwest’)<br />

case 315<br />

disp(’Southeast’)<br />

otherwise<br />

disp(’Direction Unknown’)<br />

end<br />

Z.R.K<br />

4-33 More See pages 225-227.

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

Saved successfully!

Ooh no, something went wrong!