【正文】
dent Plotting Unlike most other puter languages, MATLAB has many integral plotting and imaging mands. The plots and images can be displayed on any graphical output device supported by the puter on which MATLAB is running. This capability makes MATLAB an outstanding tool for visualizing technical data. 5. Graphical User Interface MATLAB includes tools that allow a programmer to interactively construct a graphical user interface (GUI) for his or her program. With this capability, the programmer can design sophisticated data analysis programs that can be operated by relatively inexperienced users. 6. MATLAB Compiler MATLAB′s flexibility and platform independence is achieved by piling 本科生畢業(yè)設(shè)計(jì)(論文 ) 外文翻譯 MATLAB programs into a deviceindependence pcode, and then interpreting the pcode instructions at run time. This approach is similar to that used by Microsoft is Visual Basic language. Unfortunately, the resulting programs can sometimes execute slowly because the MATLAB code is interpreted rather than piled. We will point out features that tend to slow program execution when we encounter them. A separate MATLAB piler is available. This piler can pile a MATLAB program into a true executable that runs faster than the interpreted code. It is a great way to convert a prototype MATLAB program into an executable suitable for sale and distribution to users. Disadvantages of MATLAB MATLAB has two principal disadvantages. The first is that it is an interpreted language, and therefore can execute more slowly than piled languages. This problem can be mitigated by properly structuring the MATLAB program and by the use of the MATLAB piler to pile the final MATLAB program before distribution and general use. The second disadvantage is cost: A full copy of MATLAB is 5 to 10 times more expensive than a conventional C or Fortran piler. This relatively high cost is more than offset by the reduced time required for an engineer or scientist to create a working program, so MATLAB is costeffective for businesses. However, it is too expensive for most individuals to consider purchasing. Fortunately, there is also an inexpensive Student Edition of MATLAB, which is a great tool for students wanting to learn the language. The Student Edition of MATLAB is essentially identical to the full edition. With the introduction of branches and loops, our programs are going to bee more plex, and it will get easier to make mistakes. To help avoid programming errors, we will introduce a formal program design procedure based on the technique known as topdown design. We will also introduce a mon algorithm development tool known as pseudo code. Introduction To TopDown Design Techniques Suppose that you are an engineer working in industry, and that you need to write a program to solve some problem. How do you begin? When given anew problem, there is a natural tendency to sit down at a keyboard and start programming without “wasting” a lot of time thinking about the problem 本科生畢業(yè)設(shè)計(jì)(論文 ) 外文翻譯 first. It is often possible to get away with this “on the fly” approach to programming for very small problems, such as many of the examples in this book. In the real world, however, problems are larger, and a programmer attempting this approach will bee hopelessly bogged down. For larger problems, it pays to pletely think out the problem and the approach you are going to take to it before writing a single line of code. We introduce a formal program design process in this section, and then apply that process to every major application developed