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

  • cdmaguo
    这是MATLAB工具箱,用来实现波形的生产!(This is the MATLAB toolbox, which can be used for the production of wave!)
    2007-04-24 21:46:48下载
    积分:1
  • juliangfa
    矩量法是求解电磁场边界值问题中一种行之有效的数值方法.它所做的工作是将积分方程化为差分方程,或将积分方程中积分化为有限求和,从而建立代数方程组,故它的主要工作量是用计算机求解代数方程组.所以,在矩量法求解代数方程组过程中,矩阵规模的大小涉及到占用内存的多少,在很大程度上影响了计算的速度.如何尽可能的减少矩阵存储量,成为加速矩量法计算的关键.此处介绍了方法(MoM is the solution of electromagnetic field boundary value problem in an effective numerical method. It is the work done by integral equations into differential equations, or integral equations into a finite sum of points, so as to establish algebraic equations Therefore, it is the main workload of the computer to solve algebraic equations. Therefore, in the moment method for solving algebraic equations, the matrix size relates to the amount of memory, to a large extent affected the speed of calculation. how to maximize the reduction of matrix storage has become accelerated MoM calculation of the key. introduce the method here)
    2008-06-08 11:12:09下载
    积分:1
  • gprs.gpr
    一种自适应阵列天线波束赋形合成算法_解决很多问题(An adaptive array antenna beam forming algorithm to solve many problems _)
    2015-03-30 10:21:26下载
    积分:1
  • Programming_Pearls(Second_Edition)
    了解快捷编程过程、技巧、方法和避免不必要的 Bug。(Understanding of the process of fast programming, techniques, methods, and to avoid unnecessary Bug.)
    2009-07-17 14:26:43下载
    积分:1
  • skin-detect
    contain step to detection human skin background using C++. From RGB as input convert to Ycrcb
    2014-10-29 08:14:12下载
    积分:1
  • Failure-Mode-and-Reliability
    结构系统失效模式可靠性Monte-Carlo法 结构系统失效模式研究与可靠性分析(Structural system reliability failure modes Monte-Carlo method structural system reliability analysis and failure mode study)
    2013-12-18 19:43:11下载
    积分:1
  • shengyanibiancheckfinal
    MATLAB 仿真一个光伏升压变流器,从12V升到大概300多伏吧,很基本的仿真模型。(matlab PV invertor)
    2016-01-06 15:07:40下载
    积分:1
  • sed6120
    整有效。中间四个字节分别代表设备的地址、指令类型、指令参数1(OPT1)和指令参数2(OPT2)。设备在对这四个字节的内容进行译码后执行相应的操作
    2009-12-25 09:29:17下载
    积分:1
  • 7
    说明:  本程序是数制转换问题,为十进制数字和罗马数值间的相互转化,本程序用的是函数调用法(This program is the number of system conversion problems, in order to decimal numbers and value of the inter-conversion of Rome, this program using a function call method)
    2009-12-27 21:35:22下载
    积分:1
  • boil
    对于蒸发冷凝的相变UDF,给与大家参考,希望与大家多多交流(For evaporation condensation phase transition UDF, give your reference)
    2013-12-09 23:14:08下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载