Chapter 4: Programming with MATLAB - FET
Chapter 4: Programming with MATLAB - FET
Chapter 4: Programming with MATLAB - FET
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.