Introduction to MATLAB 7 for Engineers Chapter 1 An ... - FET
Introduction to MATLAB 7 for Engineers Chapter 1 An ... - FET
Introduction to MATLAB 7 for Engineers Chapter 1 An ... - FET
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Suppose that we want <strong>to</strong> compute y such thaty =15√4x + 10 if x ≥ 910x + 10 if 0 ≤ x < 910 if x < 01-49The following statements will compute y, assuming that thevariable x already has a scalar value.if x >= 9y = 15*sqrt(4x) + 10elseif x >= 0y = 10*x + 10elsey = 10endNote that the elseif statement does not require aseparate end statement.More? See pages 47-48.