Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Vue Injector 3.3
Spectrum Analyzer pro Live 2019
Devart Excel Add-in for HubSpot 2.1
RentALLScript - Airbnb clone 2.2
SuiteCRM Theme Customization 7.11.6
iScripts NetMenus 3.1
iScripts EasyIndex 2.2
iScripts EasySnaps 2.0
Australia MyPost shipping For Magento 2 1.0.0
Australia Post eParcel For Magento 1.1.1
Source Control for SQL Server 2.0
Answers phpSoftPro 3.12
Exlcart 2.0
School College ERP 1.3.2
White-label Grocery Delivery App Solution 2.0
Top Code
iScripts EasySnaps 1
iScripts EasyIndex 1
iScripts NetMenus 2.0
ATN Site Builder 3.0
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
PHP Review Script 1.0
ATN Resume Finder 2.0
Quick Maps For Dynamics CRM 3.1
phpEnter 5.1.
ICPennyBid Penny Auction Script 4.0
Invoice Manager by PHPJabbers 3.0
Solid File System OS edition 5.1
Deals and Discounts Website Script 1.0.2
Extreme Injector 3.7
Top Rated
phpEnter 5.1.
Quick Maps For Dynamics CRM 3.1
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
C-MEX file example for 'float' data types 1.0
File ID: 81981






C-MEX file example for 'float' data types 1.0
Download C-MEX file example for 'float' data types 1.0http://www.mathworks.comReport Error Link
License: Freeware
File Size: 10.0 KB
Downloads: 13
Submit Rating:
C-MEX file example for 'float' data types 1.0 Description
Description: 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.c

The C function is part of the publicly available code for the ILBC coder.

License: Freeware

Related: matlabto, Create, Calling, casting, signle, Typing, Coder, publicly, hpinputcthe, Command, matlabmex, poiter, functionif, Double, matlab, Pointer

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 13



More Similar Code

A cross-platform XML-based file-format for storing and interchanging data between train simulation applications.



Creating java class description files (like C/C++ headers) in html format, link together with data types.



The program mex_test.c is a basic example of how to use mxArray *prhs[] in mexFunction entry embedded in C code. The executable should accept 3 input args of different data types: 1 string, 1 double and 1 int32 array. The program allows a user to...



This MacOS X Project Builder template can be used to easily create a MATLAB MEX-file project. Source level debugging of the MEX-files is the primary benefit of using this template.



CHECK_MEX_COMPILED Check if mex file is compiled for system.

SYNTAX

CHECK_MEX_COMPILED(SOURCE_FILE)
CHECK_MEX_COMPILED(OPTIONS,SOURCE_FILE)

DESCRIPTION

CHECK_MEX_COMPILED(SOURCE_FILE) checks...



It is the version in C Mex frame of my cardiac processor VI1 for cardiac cells oscillations.I am very in love with matlab and mathworks products so i publish only for one time my work out of matlab in C Mex for C execution.



A guide introducing how to compile Mex-file using Kinect SDK and there is also a toy example based on Kinect SDK, which is called "record".



The code in this submission describes how to download and install the Visualization Toolkit (VTK, www.vtk.org) and create a MATLAB mex file to interface with it.

An example C++ mex file and code to build and run the mex file are included.



Force 'file download' for known file types is a simple article in which the author has summarized on the advantages of using mail extensions in letting your clients to download the structure of your website directory. The author has urged the need...



These files are subroutines for importing and exporting files in the file format used by the Internet Site for European Strong-Motion Data (http://www.isesd.cv.ic.ac.uk). Raw_in imports uncorrected acceleration time-histories in ISESD format,...

User Review for C-MEX file example for 'float' data types
- required fields
     

Please enter text on the image