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

  • junzhilvbonmd
    MATLAB对数字信号进行均值滤波,尤其是对数字图像(MATLAB for digital signals mean filter, especially for digital images)
    2014-02-22 18:43:06下载
    积分:1
  • PriorityQueue.tar
    Priority Queue Data Struct
    2014-11-09 02:17:13下载
    积分:1
  • 5esempi_C++
    quinto esempi vari per c++ (schemi base)
    2009-05-13 03:34:35下载
    积分:1
  • MATLAB
    说明:  在simulink中搭建Buck-Boost开环电路,但这种开环电路不好调整输出电压,于是又搭建了一种简单闭环电路(Buck-Boost open-loop circuit is built in simulink, but this open-loop circuit can not adjust the output voltage, so a simple closed-loop circuit is built.)
    2019-01-15 10:30:49下载
    积分:1
  • 2D-TM
    fdtd arithmetic 计算二维tm波(fdtd arithmetic calculation of two-dimensional wave tm)
    2007-04-25 11:40:26下载
    积分:1
  • vcip2010
    vcip的相关MATLAB程序和相关的代码(vcip related procedures and related MATLAB code)
    2010-11-06 16:30:17下载
    积分:1
  • matlab1
    牛顿法, 快速解耦法, 。潮流计算在数学上属于多元非线性方程组的求 解问题,在用迭代法求解时涉及到大量的矢量和矩阵运算,因而寻求一个能高效 地处理矩阵运算的语言,将给潮流计算程序的编制带来巨大的方便.(fast flow electric Power flow calculation is mathematically the solution of multivariate nonlinear equations. Solving the problem involves a large number of vector and matrix operations when solving the iterative method, thus seeking a highly efficient solution. The language of matrix operation will bring great convenience to the compilation of power flow calculation program.)
    2018-05-05 10:54:49下载
    积分:1
  • IIR
    程序实现用脉冲响应不变法和双线性变换法设计IIR滤波器,包括低通滤波器和高通滤波器,其中采样点N=1600,采样频率Fs=10000.(The same impulse response and bilinear transform IIR filter design, including low-pass filter and a high pass filter, where sampling points N = 1600, the sampling frequency Fs = 10000.)
    2015-03-24 15:36:52下载
    积分:1
  • matlab
    这是计算方法基本迭代法的一个matlab编程实例。(This is the calculation of a basic iterative method matlab programming examples)
    2010-12-09 20:30:50下载
    积分:1
  • Matlab-senior-notes-
    Matlab高级讲义之计算机辅助设计与仿真技术概述(Matlab senior notes- an overview of computer-aided design and simulation)
    2011-12-24 21:04:32下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载