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

  • Bear-P
    ios 6 programming and example source
    2014-01-09 18:43:51下载
    积分:1
  • SHOOT2
    this program to compute the shoot function
    2013-12-19 10:41:34下载
    积分:1
  • Programming-Optimization
    Programming Optimization: by Paul Hsieh
    2012-10-25 20:57:48下载
    积分:1
  • minmaxtemprecorder
    it is used to store the min and max temperatures
    2010-08-06 20:46:40下载
    积分:1
  • LTElianlufangzhen()
    LTE链路仿真 LTE链路仿真 LTE链路仿真(Link Simulation LTE LTE LTE link Link Simulation Simulation)
    2013-07-20 12:31:38下载
    积分:1
  • Bad-TV-Transition-V2.prfpset
    Damaged VHS filter for aftereffects
    2014-09-21 19:56:11下载
    积分:1
  • FindAllWin32Process
    例子列举所有的进程基类,适合Window编程初学者。(The example gets all the process classes. for the fundamental coder)
    2015-04-01 20:42:19下载
    积分:1
  • h2fs
    iris information for research.give details of iris.
    2009-07-12 04:38:10下载
    积分:1
  • Dynamic_Copula_Toolbox_3.0
    用来估计dynanmic copula的参数和copula vine中的相关参数,并进行拟合。(Used to estimate the parameters in dynanmic copula parameters and a copula vine, and fitting.)
    2012-04-05 22:35:47下载
    积分:1
  • AWGN
    awgn信道的建模。matlab实现方针,进行了比较(awgn channel modeling. matlab realize the principle of a comparative)
    2021-01-30 02:48:34下载
    积分:1
  • 696516资源总数
  • 106562会员总数
  • 4今日下载