Call_C_Function_fro​m_MATLAB.zip

An simple example to show how to execute C-function in MATLAB environment
250 Downloads
Aktualisiert 2. Sep 2014

Lizenz anzeigen

This submission shows how to integrate function file programmed with .c format with MATLAB script. Basically you should follow these steps:
1) Prepare the original .c file
2) Add "void mexFunction()" into 1) to describe the input/output interface
3) Put this .c file and MATLAB script into the same folder
4) Run "mex $function_name.c" in MATLAB
5) Call this function with an ordinary MATLAB description like B = $function_name(A1,A2,...)
In this example, you can run the script "Run_MEX_CinM_Test_2014_0828_1.m" to see how to call .c file to perform array product calculation.

For more information, please visit: http://www.mathworks.com/help/matlab/mex-file-functions.html

Zitieren als

James D.B. Wang (2024). Call_C_Function_from_MATLAB.zip (https://www.mathworks.com/matlabcentral/fileexchange/47694-call_c_function_from_matlab-zip), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2013b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Whos finden Sie in Help Center und MATLAB Answers
Tags Tags hinzufügen
c mex

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Call_C_Function_from_MATLAB/

Version Veröffentlicht Versionshinweise
1.1.0.0

Added reference information

1.0.0.0