本文着重描述了运用MATLAB命令将M文件翻译为C语言程序,并修改为可直接调用的C语言函数的方法,使用该方法所需要注意的方法局限性和MATLAB版本差异的影响。运用该方法将能够使C语言能直接使用MATLAB当中已经完成的数学计算功能,大大扩充了C语言的数学计算功能和开发效率。-This paper describes the use of MATLAB M ordered the translation of documents for the C Programming Language, and revised to directly call the C language function, use of the method needed to limitations of the method and MATLAB version of the impact of differences. Using this method will enable C language can be used directly MATLAB which has been completed arithmetic function, greatly expanded the C language arithmetic functions and development efficiency. 下载
|
matlab例程MATLAB 6.x版的内建数据类型(Built-in data type)就有5种以上,此外还有许多其他专门设计的类(Class),如符号类、内联函数类、控制工具包中的线性时不变模型类、神经网络类等。就程序设计而言,MATLAB 6.x版采用了面向对象编程技术。数据和编程的改变使用户能更简捷而自然地解决复杂的计算问题(如符号计算问题、多变量控制系统问题、神经网络问题)。本章内容根据MATLAB6.5编写,但绝大部分内容适用于其他MATLAB6.x版本。-Matlab routines MATLAB 6.x version of the built-in data types (Built-in da ta type) have more than five, in addition to many other specialized design category (Class). If symbol, which together function category, tool kits control the linear time-invariant model type, neural network type. On the design process, using MATLAB 6.x version of the object-oriented programming technology. Programming and data changes so that users can more simple and natural solution to the complex calculation (as symbolic computation, multivariable control systems, neural networks). According to the contents of this chapter MATLAB6.5 preparation, But most of what applies to other MATLAB6.x version. 下载
|
0-1整数规划有很广泛的应用背景,比如指派问题,背包问题等等,实际上TSP问题也是一个0-1问题,当然这些问题都是NP问题,对于规模较大的问题用穷举法是没有办法在可接受的时间内求得最优解的,本程序只不过是一个练习,得意之处是用递归法把所有解都排列出来。另:胡运权所著的《运筹学基础及应用(第三版)》第97页的例3,我用本程序求解得到的结果是:最优解是x*=(1,0, 0, 0, 0),最优值是f(x*)=8,但书求得最优解是x*=(1,0, 1, 0, 0),最优值是f(x*)=4,是不是书中写错了,请大家验证。以下是源程序,大家可以任意使用无版权问题,另外,如果大家有大规模的0-1规划的问题也希望提供给我,谢谢。变量个数至少是3个-0-1 Integer Programming is a very broad background, such as assignment, bags and so on. actually TSP is a 0-1, of course, these problems are NP, for larger problem with the law is not exhaustive approach in an acceptable time frame to obtain the optimal solution. this procedure is only one practice, farewell tour is the method used recursive all of the solutions to show. Another : Hu Yun-author of "operational research, and application base (third edition)" Article 97 of the three cases, I use this procedure to solve the result is : is the optimal solution x = (1,0, 0, 0, 0), the optimal values of f (x *) = 8, but the book is to find the optimum solution x = (1,0, 1, 0, 0), the optimal values of f (x *) = 4, the book is not a mistake, please certification. Following is the source 下载
|
作 者 何强 何英 [同作者作品] 【出 版 社】 清华大学出版社 【书 号】 7-900641-80-7 本书以MATLAB扩展编程及其应用实例为主线,以MATLAB与C程序、Visual Basic、Excel、网络和系统硬件的接口为核心,采用图文并茂的方式、简捷明快的手法和通俗易懂的语言,配合大量的代码实例以及一个简单的语音识别系统的具体实现,系统介绍了MATLAB的新特性、常用的代码优化方法和功能扩展途径。全书分为3部分,共13章。第1部分(第1章—第6章):MATLAB 6的安装和运行、MatrixVB、Excellink、MATLAB Web Server、MATLAB的数据结构和编程技巧、MATLAB图形用户界面编程:第2部分(第7章—第11章):MATLAB引擎、MATLAB可执行程序、MATLAB C++数学库和图形库、MATLAB Runtime Server、MATLAB访问系统硬件;第3部分(第12章、第13章):MATLAB的录音工具、基于MATLAB的语音识别系统。 本书面向有一定MATLAB、C/C++语言编程基础的理工科学生、科研人员和教学工作者,既是新手进阶提高的读物,又是中高级MATLAB用户的必备手册。 -author Qiang Ying [with the authors] [publisher] [Tsinghua University Press ISBN : 7-900 641-80-7 book MATLAB to expand programming and application examples main line, to MATLAB and C program, Visual Basic, Excel, network and system hardware interface to the core, using text, Simple crisper practices and user-friendly language, a lot of code examples and a simple speech recognition system is a concrete realization, MATLAB system of the new features, the common code optimization and functional way to expand. The entire book is divided into three parts, with a total of 13 chapters. Part 1 (Chapter 1-Chapter 6) : 6 MATLAB installation and operation matrixVB. Excellink, MATLAB Web Server, MATLAB data structures and programming skills, MATLAB graphical user interface programming : Part 2 (Chapt 下载
|