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

  • pipei
    matlab单枝节阻抗匹配单枝节阻抗匹配单枝节阻抗匹配(One minor impedance matching matlab)
    2013-11-20 21:51:08下载
    积分:1
  • vcPP6.0
    仿真火车站的站场图,可以办理进路,显示信号机,单操,单锁道岔等功能(Simulation Station station map, you can handle into the road.)
    2013-11-23 17:46:30下载
    积分:1
  • lzw_compression
    编程实现lzw编码 (Programming lzw coding )
    2010-11-14 15:59:47下载
    积分:1
  • imagecipher2
    entropy analysis using matlab
    2009-06-06 07:26:00下载
    积分:1
  • stone
    说明:  经典的石子划分问题,不同质量和数量的石子进行划分,以求最优解(Classic stone division, different quality and quantity of stones to be divided, with a view to the optimal solution)
    2010-04-19 23:46:51下载
    积分:1
  • bys
    有关卡调用的很好资料,希望对大家有用,一起学习(hand book)
    2010-03-10 20:55:43下载
    积分:1
  • PV_MPPT.mdl
    光伏电池的最大功率点跟踪方法,采用恒压法进行控制(Photovoltaic cell maximum power point tracking method using constant pressure method for control)
    2018-05-05 16:25:37下载
    积分:1
  • FDTD3DCODEUSING
    一个三维FDTD的计算程序,比较有用,适合初学者。(A three-dimensional FDTD calculation procedures, more useful for beginners.)
    2014-01-03 14:55:19下载
    积分:1
  • Vccallmatlabdll
    vc调用matlab的例子,亲,使用起来非常方便哦( vc call matlab example, pro, very convenient oh)
    2016-06-13 14:49:04下载
    积分:1
  • Jacobi-Polynomial-coefficient
    Jacobi Polynomial Coefficient
    2015-01-19 05:34:36下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载