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

  • zjj
    使用matlab的仿真平台simulink来实现直接序列扩频码变换为双极性码的转换 (Matlab simulation using simulink platform to achieve the direct sequence spread spectrum code transformation for bipolar code conversion)
    2008-06-11 10:47:55下载
    积分:1
  • dualinverter
    光伏并网系统中的双逆变器拓扑结构及其控制策略研究(dual-inverter topology and control strategy for Grid-connected PV application )
    2012-05-01 10:07:03下载
    积分:1
  • MATLAB_C
    MATLAB信号处理宝典,包括各种函数,滤波器的源程序等(Collection MATLAB signal processing, including the various functions, such as the filter source)
    2010-12-03 12:40:13下载
    积分:1
  • Lang_C3_ppt
    it s about a course in language C++ writen by professional professor in university course number 33
    2015-04-01 19:21:38下载
    积分:1
  • TurboDecodeAlgorithm
    3GPP标准Turbo码编码译码仿真Matlab6.5及VC6.0源代码,并包含Turbo码编码译码原理的介绍文档。(3GPP standard Turbo coding and decoding simulation VC6.0 Matalab 6.5 source code , and includes Turbo Encoder Decoder description of the principle of documentation.)
    2006-10-11 00:53:04下载
    积分:1
  • matlab_instruction
    中大数计的matlab的ppt,数学建模竞赛资料(The large numbers of dollars matlabppt)
    2014-01-22 16:45:54下载
    积分:1
  • PML_10
    交错网格声波方程正演模拟,PML吸收边界,比较适合刚刚接触的学者。交错网格有限差分地震波场计算,二维的声波正演,利用空间10阶,时间2阶。(The CalCulation of the SeismiC Wave一 fieldwith Staggered-grid Finite difference Sheme)
    2014-01-09 08:54:14下载
    积分:1
  • 套利精灵2019版本_源码(1)
    EA名称:套利精灵 EA类型:对冲套利 一、功能介绍 本EA遵行顺大势,逆小势策略入场交易; 二、核心优势 多货币套利,对冲风险获取盈利,每月有一次机会单局最大利润达到30% 三、注意事项 (1)如适用周期:该EA只须在欧美一分钟图表上,就能运行多对货币。 (2)资金要求:建议3000美金,最少入金不少于1000美金 (3)时间段:全时段,正常情况无需人工干预,在盈利的情况下,可视情况自行平仓;(EA Name: Arbitrage Elf EA Type: Hedging Arbitrage I. Introduction of Functions This EA follows the general trend and counter-minor strategy to enter the market. II. Core Advantages Multi-currency arbitrage, hedging risk for profit, once a month, the maximum profit of a single board reached 30%. Notes (1) If applicable: the EA can run multiple pairs of currencies only on a one-minute chart in Europe and the United States. (2) Capital requirements: Recommend $3000, at least $1000 (3) Time period: Full-time period, normal conditions without manual intervention, in the case of profit, according to the circumstances of self-liquidation;)
    2020-06-22 23:20:01下载
    积分:1
  • baizaosheng
    关于白噪声的仿真程序,有功率谱及fft的变换等,很有用(About the white noise simulation program, a power spectrum and FFT transformation and so on, is very useful )
    2013-03-06 09:21:09下载
    积分:1
  • Image-binarization-processing
    利用matlab的GUI设计的图像二值化处理的可视化界面,包含所需的操作界面和m文件,可对图片进行导入、二值化处理及保存等操作。 (A visual interface of image binarization processing designed by Matlab GUI.It contains the desired interface and m file, you can import the picture, do binarization processing and preserve the new image.)
    2013-09-22 10:21:48下载
    积分:1
  • 696518资源总数
  • 104384会员总数
  • 26今日下载