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.

4-4<br />

Advantages of structured programming<br />

1. Structured programs are easier to write because the<br />

programmer can study the overall problem first and<br />

then deal <strong>with</strong> the details later.<br />

2. Modules (functions) written for one application can be<br />

used for other applications (this is called reusable<br />

code).<br />

3. Structured programs are easier to debug because<br />

each module is designed to perform just one task and<br />

thus it can be tested separately from the other<br />

modules.<br />

4. Structured programming is effective in a teamwork<br />

environment because several people can work on a<br />

common program, each person developing one or<br />

more modules.<br />

5. Structured programs are easier to understand and<br />

modify, especially if meaningful names are chosen<br />

for the modules and if the documentation clearly<br />

identifies the module’s task.<br />

Z.R.K

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

Saved successfully!

Ooh no, something went wrong!