C-MEX file example for 'float' data type Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: hpInput.c
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: Ali Behboodian (View more)

C-MEX file example for 'float' data type script description:




Publisher review:
C-MEX file example for 'float' data types - Calling a C file from MATLAB, the C function (a high pass filter) has four arguments If you have a C function with arguments that are float or pointer to float (rather than double or pointer to double) you can call the function from MATLAB and pass arguments to the function as single data types. For example, in this case we have a C file that is a highpass filter. In MATLAB ver. 7 we pass arguments to the function as:[out,mem]=hpinput(single(n),single(mem));Note that mem is used both as input to the function and output to the function.If the arguments to the C function were of type double or poiter to double, there was no need to use 'signle' type casting when we were calling the function in MATLAB.To use this function in MATLAB you need to create a dll file by typing the following command in MATLAB:mex hpinput.cThe C function is part of the publicly available code for the ILBC coder. Requirements: ยท MATLAB Release: R14SP1
C-MEX file example for 'float' data type is a Matlab script for Development Tools scripts design by Ali Behboodian. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5