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

  • xb050229
    希尔伯特变换理论及其在工程领域的应用,介绍了原理及其实现方法(hibert transform)
    2009-05-01 20:27:37下载
    积分:1
  • easyyougai
    用于ABAQUS显示分析的子程序,材料本构模型内嵌断裂准则,可用于单元删除。(用于ABAQUS显示分析的子程序,材料本构模型内嵌断裂准则,可用于单元删除。 用于ABAQUS显示分析的子程序,材料本构模型内嵌断裂准则,可用于单元删除。 ABAQUS analysis for the display subroutine, material constitutive model embedded fracture criteria, can be used to remove the unit.)
    2017-02-20 15:59:14下载
    积分:1
  • New-Text-Document
    matlab sar simulation
    2013-08-14 22:05:28下载
    积分:1
  • Authorware
    Authorware 5 自主学习的好帮手,快速学会Authorware 5(Authorware 5 independent study is a good helper, fast learn Authorware 5)
    2009-11-18 12:37:16下载
    积分:1
  • Codes_PLS
    PLS 的Matlab代码,用于线性降维和回归分析(matlab source code for partial least squares)
    2010-05-14 16:00:07下载
    积分:1
  • MRbrain.tar
    核磁共振切片素材核磁共振切片素材核磁共振切片素材核磁共振切片素材核磁共振切片素材核磁共振切片素材核磁共振切片素材核磁共振切片素材(MRI slice MRI biopsy material material material slice MRI MRI MRI biopsy material slice MRI biopsy material material material slice MRI biopsy material NMR)
    2010-01-02 15:59:12下载
    积分:1
  • T4Test
    T4 TEmplate 测试功能,用于测试T4template。T4TEmpate是为微软的官方模板引擎(t4 engine is a text template engine which can generate text a template. t4 engine is the default engine of microsoft)
    2014-12-15 19:16:58下载
    积分:1
  • Solar_light
    solar based charging program. Automatic on , off control and charging control.
    2014-07-14 19:27:05下载
    积分:1
  • Mseires
    用MATLAB产生M序列作为系统的输入,根据传递函数,仿真输出,并得出输入的自相关函数和输入输出的互相关函数。(M sequence generated by MATLAB as input, in accordance with transfer function, simulation output, and come to enter the auto-correlation function and the input and output of the cross-correlation function.)
    2009-06-18 22:21:51下载
    积分:1
  • m
    说明:  基于MATLAB图像处理的应用及参考代码(MATLAB-based image processing applications and reference code)
    2009-03-22 11:44:26下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载