《MATLAB的基础和超越(英文版).doc》由会员分享,可在线阅读,更多相关《MATLAB的基础和超越(英文版).doc(5页珍藏版)》请在金锄头文库上搜索。
1、Basics of MATLAB and BeyondIntroductionMATLAB is a high-level technical computing language and interactive environment for algorithm development, data visualization, data analysis, and numeric computation. Using MATLAB, you can solve technical computing problems faster than with traditional programm
2、ing languages, such as C, C+, and Fortran. You can use MATLAB in a wide range of applications, including signal and image processing, communications, control design, test and measurement, financial modeling and analysis, and computational biology. Add-on toolboxes (collections of special-purpose MAT
3、LAB functions, available separately) extend the MATLAB environment to solve particular classes of problems in these application areas. MATLAB provides a number of features for documenting and sharing your work. You can integrate your MATLAB code with other languages and applications, and distribute
4、your MATLAB algorithms and applications.Software IntroductionThe MATLAB environment is well suited to rapid prototyping and application development. The interactive programming environment, built-in math functions, toolboxes, editing and debugging tools, and deployment options all contribute to redu
5、cing your overall development time. By using the built-in math functions and the many specialized functions contained within our toolboxes, MATLAB can significantly reduce the time it takes you to develop prototypes. In addition to integrated editing and debugging tools, MATLAB provides a performanc
6、e profiler to help you further optimize your code when programming in MATLAB. Building applications around complex algorithms and graphics is easier than ever with the GUI builder, GUIDE. GUIDE was redesigned in MATLAB 6 to save you time. It offers all the drag and drop interface options you would e
7、xpect, such as text boxes, radio buttons, check boxes, listboxes, sliders, pop-up menus, frames and more. When youre ready to deploy your application, the MathWorks offers a number of different options that allow you to either convert or interface your MATLAB application to other environments includ
8、ing C/C+ and the Web. MATLAB is the most productive development environment for creating scientific and engineering applications because it offers powerful tools for every step in the process to reduce your overall development time.Use MATLAB is a high-performance language for technical computing. I
9、t integrates computation, visualization, and programming in an easy-to-use environment where problems and solutions are expressed in familiar mathematical notation. Typical uses include Math and computation Algorithm development Data acquisition Modeling, simulation, and prototyping Data analysis, e
10、xploration, and visualization Scientific and engineering graphics Application development, including graphical user interface buildingCompiled files Type The MATLAB Compiler takes M-files as input and generates C or C+ source code or P-code as output. The MATLAB Compiler can generate these kinds of
11、source code:C source code for building MEX-files.C or C+ source code for combining with other modules to form stand-aloneapplications. Stand-alone applications do not require MATLAB at run-time;they can run even if MATLAB is not installed on the end-users system.C code S-functions for use with Simul
12、ink.C shared libraries (dynamically linked libraries, or DLLs, on Microsoft Windows) and C+ static libraries. These can be used without MATLAB on the end-users system.Excel compatible plug-insCOM (Component Object Model) objects.Differences Between C+ and MATLABMost MATLAB expressions translate into
13、 C+ with no effort very often the MATLAB and C+ are identical. There are some differences in syntax, of course, but it is important to realize that the C+ interface is substantially the same as the M-file interface.Introducing mbuildThe MathWorks utility, mbuild, lets you customize the configuration
14、 and build process. The mbuild script provides an easy way for you to specify an options file that lets you Set your compiler and linker settings Change compilers or compiler settings Switch between C and C+ development Build your applicationThe MATLAB Compiler (mcc) automatically invokes mbuild und
15、er certain conditions. In particular, mcc -m or mcc -p invokes mbuild to perform compilation and linking.COM componentsComponent Object Model (referred to COM) is a software architecture that allows applications software from different manufacturers to build components. Generally speaking, application software source code is usually compiled by the static link from the binary executable code. Due to the lack of the necessary standards, the code once compiled, it will be difficult to carry out the expansion of development. Even if the same software, you want to expand the development o