(C-mexfilesforMATLABencounterthefollowingproblemwhencompilingthemwithWATCOM11.0:Allaccess-functionstofiles(fprintf,fscanf)cannothandledoublevariables,onlyintegerandstringsarereadorwrittencorrectly.Thefileconvert.ccontainstwofunctions:Youmayreadadouble-variableasastringfromthefileandconvertittoadouble(functionstring2double)andyoumayconvertadoubletoastring(functiondouble2string)andwriteittoafile(seemain()inconvert.c).Thefileconditio.datisanexampleofnumbersreadbyconvert.c.Theconv.exewascompiledonaWindows95-system.ThefilesweretestedforMATLAB5.2andWATCOM11.0aresultof"ver"is:MATLABVersion5.2.1.1420onPCWIN) - IMDN开发者社群-imdn.cn">
登录
首页 » C++ Builder » BerndHafner

BerndHafner

于 2009-12-23 发布 文件大小:34KB
0 209
下载积分: 1 下载次数: 3

代码说明:

  C-mex files for MATLAB encounter the following problem when compiling them with WATCOM 11.0: All access-functions to files (fprintf, fscanf) cannot handle double variables, only integer and strings are read or written correctly. The file convert.c contains two functions: You may read a double-variable as a string from the file and convert it to a double (function string2double) and you may convert a double to a string (function double2string) and write it to a file (see main() in convert.c). The file conditio.dat is an example of numbers read by convert.c. The conv.exe was compiled on a Windows95-system. The files were tested for MATLAB 5.2 and WATCOM 11.0a result of "ver" is: MATLAB Version 5.2.1.1420 on PCWIN (C-mex files for MATLAB encounter the following problem when compiling them with WATCOM 11.0: All access-functions to files (fprintf, fscanf) cannot handle double variables, only integer and strings are read or written correctly. The file convert.c contains two functions: You may read a double-variable as a string from the file and convert it to a double (function string2double) and you may convert a double to a string (function double2string) and write it to a file (see main () in convert.c). The file conditio.dat is an example of numbers read by convert.c. The conv.exe was compiled on a Windows95-system. The files were tested for MATLAB 5.2 and WATCOM 11.0a result of " ver" is : MATLAB Version 5.2.1.1420 on PCWIN)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • guiLibFetion
    GUI库飞信,精选ios编程学习源码,很好的参考资料。(GUI Fetion, selection of learning IOS programming source code, a good reference.)
    2013-12-16 21:20:24下载
    积分:1
  • ElLenguajeC++_apuntes
    Apuntes del lenguaje C++
    2010-11-26 23:41:08下载
    积分:1
  • MATLABSOLUTION
    MATLABSOLUTION包含了偏微分方程的MATLAB数值解法以及一百个数值计算实例,有益于初学者。(MATLABSOLUTION contains the numerical solution of partial differential equations in MATLAB, as well as 100 numerical example, useful for beginners.)
    2009-11-24 17:00:34下载
    积分:1
  • zifuchuan
    说明:  求N个字符的最大公共子串,超高效率,希望能给大家带来帮助谢谢(Request N sub-character string of the largest public, high efficiency, We hope you help thank you)
    2010-04-15 15:40:10下载
    积分:1
  • dianliu
    散射电流仿真、可视化、c++和matlab(Scattering current simulation、visualization、c++and matlab )
    2012-03-30 10:56:36下载
    积分:1
  • F16_dynam
    F16开环动力学模型,采用C语言编写的MATLAB S函数。输入为油门及3个舵面共四个控制量,以及系统低阶、高阶选择器。前缘襟翼模型内部自动调节。输出为12个状态量以及油门大小。采用欧拉角坐标系。(F16 open-loop dynamic model, using the C language MATLAB S function. Throttle input, and three of four rudder control volume, and system low, high selector. Automatically adjust the front flap inside the model. The amount of output for the 12 states and the accelerator size. Using Euler angle coordinate system.)
    2011-09-30 11:02:24下载
    积分:1
  • cache
    The cache manager source code implemented in Windows kernel.
    2009-05-30 14:00:05下载
    积分:1
  • aboutmatlab
    一本很有用的书,数字信号处理及其Matlab实现(A very useful book, digital signal processing and Matlab implementation)
    2009-09-05 14:05:23下载
    积分:1
  • matlab
    适合初学者学习的教程,还有例子.适合电子与通信专业,以及信息工程专业学习熟悉Matlab的教程(Course suitable for beginners to learn, there are examples. Suitable for electronic and communications professionals, and information engineering study are familiar with Matlab tutorial)
    2008-03-24 20:07:43下载
    积分:1
  • LDPC
    LDPC的完整c语言开发源程序代码,可以直接运行,没有错误,里面含有文件: construct_matrix.cpp decode.cpp encode.cpp Gaussian_channel.cpp generating_matrix.cpp get_matrix.cpp LDPC_main.c(LDPC complete c language source code, can be directly run, no errors, which contains documents: construct_matrix.cppdecode.cppencode.cppGaussian_channel.cppgenerating_matrix.cppget_matrix.cppLDPC_main.c)
    2020-11-10 14:29:45下载
    积分:1
  • 696516资源总数
  • 106913会员总数
  • 8今日下载