(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 220
下载积分: 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 个回复

  • PQ-power-flow
    基于MATLAB,用PQ分解法计算电力系统潮流(Solutions trend calculated using PQ decomposition method)
    2014-11-06 09:29:23下载
    积分:1
  • use-estimate-maximization
    use estimate maximization to calculate maximization of equation
    2013-10-06 18:40:59下载
    积分:1
  • variogram2
    semivario structure funvtion,there is no need other steps
    2012-05-07 21:56:51下载
    积分:1
  • matlab-utility-program.zip
    经常用到的一些matlab小程序,入门级别的,希望大家喜欢,踊跃下载哦! (utility program,very simple)
    2014-11-07 13:36:05下载
    积分:1
  • PID3
    各种经典PID的MATLAB程序,主要涉及温度控制,压力控制,液位控制等(All kinds of classic PID MATLAB procedures, mainly related to the temperature control, pressure control, level control, etc )
    2015-09-14 12:42:45下载
    积分:1
  • tokenizer
    its a c program for tokemizing
    2014-12-23 14:32:44下载
    积分:1
  • coplsdp
    基于MATLAB内点算法求解SDP半正定规划软件包(MATLAB-based interior-point algorithm for solving semidefinite program package SDP)
    2011-08-02 16:17:00下载
    积分:1
  • GUI_3
    matlab初学者资料 里面有M程序的详细文件 还有编程 直接运行即可(Matlab beginners material inside have M program detailed document and programming can be run directly)
    2012-03-30 11:21:48下载
    积分:1
  • mixure
    vc和matlab的混合编程,很好很全的(vc and matlab programming mix, full of very good)
    2011-11-23 20:59:18下载
    积分:1
  • qr_2
    image processing toolbox in matlab.registration
    2010-12-25 16:47:48下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载