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 typical structure of a<br />

while loop follows.<br />

while logical expression<br />

statements<br />

end<br />

For the while loop to function<br />

properly, the following two<br />

conditions must occur:<br />

1. The loop variable must have a<br />

value before the while statement<br />

is executed.<br />

2. The loop variable must be<br />

changed somehow by the<br />

statements.<br />

Flowchart of the while<br />

loop. Figure 4.5–3<br />

Z.R.K<br />

4-29 More See pages 221-223.

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

Saved successfully!

Ooh no, something went wrong!