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

  • jos-master
    os mit fork i gues moroccain bla
    2015-04-08 20:46:06下载
    积分:1
  • XqbkEyyv
    matlab-M文件库 可用于学习Matlab 标准化编程(matlab m file)
    2009-03-01 16:52:27下载
    积分:1
  • MATLABCodeToCcode
    介绍了如何利用Mathh的Realtime Workshop代码生成工具将Simulink模型自动转换成C代码的方法(This paper proposes a method of using the RTW (Real-Time Workshop)code generation tool to convert Matlab to the C code.)
    2009-09-12 16:51:13下载
    积分:1
  • MATLAB
    matlab7.0教学。。。。。。。。。。。。。。。。。。(matlab7.0。。。。。。。。。)
    2010-12-26 00:24:22下载
    积分:1
  • 1-(12)
    Co-Optimization of Generation Unit Commitment and Transmission Switching With N-1 Reliability
    2015-04-03 21:38:19下载
    积分:1
  • spectrum-leakage-and-window-function
    信号分析与处理中的频谱泄露现象及窗函数的作用(Signal analysis and processing of the spectrum leakage phenomenon and the role of window function)
    2011-11-14 11:53:15下载
    积分:1
  • SGA-simple-Genetic-Algorithm
    C语言编的简单遗传算法程序 各项功能齐全(SGA-simple Genetic Algorithm)
    2011-05-23 16:24:14下载
    积分:1
  • st_marr
    基于宽带Marr子波的广义S变换程序,与常规S变换相比,时频聚焦性更高。(Generalized S transform broadband Marr wavelet-based program, compared with the conventional S-transform time-frequency focus more.)
    2020-08-15 15:38:25下载
    积分:1
  • matlab4
    利用matlab进行五点三次法平滑处理(时域和频域)(Using matlab 5.3 times France smoothing process (time domain and frequency domain))
    2013-09-15 10:46:29下载
    积分:1
  • HowToUseMatlab
    说明:  如何在C++中使用Matlab,这份资源希望能够帮助到大家。最近看了太多关于图象处理方面的内容。前辈们都很努力啊!(How to use C++ in Matlab, the resources that we hope to be able to help. Recently read too much on the aspects of image processing. Predecessors, have worked very hard ah!)
    2009-08-07 20:30:19下载
    积分:1
  • 696518资源总数
  • 105547会员总数
  • 4今日下载