1、本科生毕业设计(论文 ) 外文翻译 外文原文 Introduction to MATLAB MATLAB (short for Matrix Laboratory) is a special-purpose computer program optimized to perform engineering and scientific calculations. It started life has a program designed to perform matrix mathematics, but over the years it has grown into a flexible
2、 computing system capable of solving essentially any technical problem. The MATLAB program implements the MATLAB programming language and provides an extensive library of predefined functions that make technical programming tasks easier and more efficient. This book introduces the MATLAB language an
3、d shows how to use it to solve typical technical problems. MATLAB is a huge program, with an incredibly rich variety of functions. Even the basic version of MATLAB without any toolkits is much richer than other technical programming languages. There are more than 1000 functions in the basic MATLAB p
4、roduct alone, and the toolkits extend this capability with many more functions in various specialties. This book makes no attempt to introduce the user to all of MALTLABs own tools to locate the correct function for a specific purpose from the enormous choice available. Advantages of MATLAB MATLAB h
5、as many advantages compared with conventional computer languages for technical problem solving. Among them are the following: 1. Ease of Use MATLAB is an interpreted language, like many versions of Basic. Like Basic, it is very easy to use. The program can be used as a scratch pad to evaluate expres
6、sions typed at the command line, or it can be used to execute large prewritten programs. Programs may be easily written and modified with the built-in integrated development environment, and debugged with the MATLAB debugger. Because the language is so easy to use, it is ideal for educational use, a
7、nd for the rapid prototyping of new programs. Many program development tools are provided to make the program easy to use. a workspace browser, and extensive demos. 2. Platform independence MATLAB is supported on many different computer systems, providing a large measure of platform independence. At
8、 the time of this writing, the language is 本科生毕业设计(论文 ) 外文翻译 supported on windows 9x/NT/2000 and many different versions of UNIX. Programs written on any platform will run on all of the other platforms, and data files written on any platform may be read transparently on any other platforms, AS a res
9、ult, Programs written in MATLAB can migrate to new platforms when the needs of the user change. 3. Predefined Functions MATLAB comes complete with an extensive library of predefined functions that provide tested and prepackaged solutions to many basic technical tasks. For example, suppose that you a
10、re writing a program that must calculate the statistics associated with an input data set. In most languages, you would need to write your own subroutines or functions to implement calculations such as the arithmetic mean, standard deviation, median, and so forth. These and hundreds of other functio
11、ns are built right into the MATLAB language, making your job much easier. In addition to the large library of functions built into the basic MATLAB language, many special-purpose toolboxes are available to help solve complex problems in specific areas. For example, a user can buy standard toolboxes
12、to solve problems in Signal Processing, Control Systems, Communications, Image Processing, and Neural Networks, among many others. There is also an extensive collection of free user-contributed MATLAB programs that are shared through the MATLAB Web site. 4. Device-Independent Plotting Unlike most ot
13、her computer languages, MATLAB has many integral plotting and imaging commands. The plots and images can be displayed on any graphical output device supported by the computer on which MATLAB is running. This capability makes MATLAB an outstanding tool for visualizing technical data. 5. Graphical Use
14、r 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 Compile
15、r MATLABs flexibility and platform independence is achieved by compiling 本科生毕业设计(论文 ) 外文翻译 MATLAB programs into a device-independence p-code, and then interpreting the p-code instructions at run time. This approach is similar to that used by Microsoft is Visual Basic language. Unfortunately, the res
16、ulting programs can sometimes execute slowly because the MATLAB code is interpreted rather than compiled. We will point out features that tend to slow program execution when we encounter them. A separate MATLAB compiler is available. This compiler can compile a MATLAB program into a true executable
17、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 execu
18、te more slowly than compiled languages. This problem can be mitigated by properly structuring the MATLAB program and by the use of the MATLAB compiler to compile 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
19、 expensive than a conventional C or Fortran compiler. 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 cost-effective for businesses. However, it is too expensive for most individuals to consider purchas
20、ing. 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 become more c
21、omplex, 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 top-down design. We will also introduce a common algorithm development tool known as pseudo code. Introduction To Top-Down Design Tec
22、hniques 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