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

  • shanon
    说明:  香农第一定理指出了平均码长与信源之间的关系,同时也指出了可以通过编码使平均码长达到极限值,这是一个很重要的极限定理。(Shannon first theorem that the average yards long with the letter of the relationship between the source, it has also pointed out the code can make the average yards long reach limits, this is a very important Limit Theorem.)
    2006-05-13 00:27:36下载
    积分:1
  • FIXED-POINT-METHOD
    固定点法,定点技术迭代及求解算法,MATLAB实现,大家可以参考一下(Fixed point method, fixed technology and iterative algorithm, MATLAB implementation, we can refer to)
    2015-01-26 10:16:54下载
    积分:1
  • ILI9225G_DS_V0.06_20110228
    ILI9225G屏资料,关于寄存器的具体使用方法,以及相关的说明。(ILI9225G screen information about the specific use of registers, and related instructions.)
    2014-09-14 17:10:10下载
    积分:1
  • Job4
    本程序实现了找出一个n个数的序列中最长的单调递增子序列,并符带测试数据(This program implements to find a sequence of n the number of the longest monotonically increasing subsequence, and to break with the test data)
    2009-12-31 22:17:01下载
    积分:1
  • zhongzhilvbo
    使用MATLAB对数字信号进行中值滤波,尤其可以对图像进行滤波处理(Use MATLAB digital signal filtering, in particular, the image can be filtered)
    2014-02-22 17:48:25下载
    积分:1
  • PID
    wood_berry蒸馏塔的PID控制,使用matlab编程实现。(wood_berry distillation column PID control, the use of matlab programming.)
    2013-08-20 08:55:29下载
    积分:1
  • Graphic
    这是一个在VC环境下实现动态图形变化的例子,里面包含各种类型的曲线图,相信对学习用VC画图功能的读者会有很大的帮助(This is a VC environment in the realization of dynamic graphics examples of changes, which contains various types of curves, I believe that learning to use drawing functions VC readers will be of great help)
    2008-04-19 13:20:01下载
    积分:1
  • C2000_tool_guide
    数字信号处理开发工具C2000开发工具软件(data signal process)
    2010-09-09 12:44:36下载
    积分:1
  • 26204-800
    AMR WB+ 基于3GPP标准的宽带Adaptive Multi-Rate - Wideband 实现(3rd Generation Partnership Project Technical Specification Group Services and System Aspects Speech codec speech processing functions Adaptive Multi-Rate- Wideband (AMR-WB) speech codec ANSI-C code )
    2015-01-04 20:02:45下载
    积分:1
  • NINE
    Matlab教程第七章案例,面板数据分析、计量(Matlab Guide Chapter VII of the case, panel data analysis, measurement)
    2013-07-20 10:06:26下载
    积分:1
  • 696516资源总数
  • 106562会员总数
  • 4今日下载