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

  • TheNURBSBook
    工程界几何模型参数化用到的NURBS曲线生成的理论和相关源代码。可用以翼型参数化、船舶外形参数化等(the theory of NURBS curve generation and the related source code for Engineering of geometric model parameterization . Airfoil parameterization and ship shape parameterization can be used )
    2009-12-28 16:23:33下载
    积分:1
  • Untitled
    matlab绘制阵列正六边形。采用坐标方法。(Draw a regular hexagon array matlab. Using coordinate methods.)
    2021-01-04 20:48:55下载
    积分:1
  • qichelilun
    本程序为汽车理论第五版课后习题程序,采用matlab编程,经测试均为正确结果(The procedures for the car the theoretical fifth edition of the after-school exercise program, using matlab programming, has been tested and are the correct results)
    2013-05-07 13:35:00下载
    积分:1
  • programas
    programas cesar y polybios
    2014-10-09 02:51:28下载
    积分:1
  • PEGASIS-Protocol-in-OmnetPP-by-wsnlab.ir
    Improved LEACH in matlab
    2014-01-08 14:06:57下载
    积分:1
  • DFSER
    对不同源节点到中继节点距离的固定DF译码转发协作通信的误码率进行了仿真(The error rate of fixed DF decode and forward cooperative communication is simulated for the distance from heterogeneous nodes to relay nodes)
    2017-11-26 13:17:13下载
    积分:1
  • AE
    说明:  AppWizard has created this AE application for you. This application not only demonstrates the basics of using the Microsoft Foundation classes but is also a starting point for writing your application.
    2010-05-14 14:02:22下载
    积分:1
  • Poincare
    非线形混沌系统的庞加莱图的画法的代码以及其MATLAB m文件代码(Non-linear chaotic system Poincare map of the painting of the code and its MATLAB m-file code)
    2013-09-27 15:47:09下载
    积分:1
  • CDialogSK_src
    title bar 示例 title bar 示例 (title bar examples title bar examples title b ar Example)
    2007-04-14 00:54:11下载
    积分:1
  • ckhby
    含噪脉冲信号进行相关检测,高斯白噪声的生成程序,基于matlab平台实现。( Noisy pulse correlation detection signal, Gaussian white noise generator, Based on matlab platform.)
    2017-04-19 18:07:15下载
    积分:1
  • 696518资源总数
  • 105873会员总数
  • 12今日下载