Example of loading C DLL and performance comparison
by Vinesh Bhunjun
21 May 2007
(Updated 21 May 2007)
The example shows how to load a C DLL and also compares it with Matlab files
|
Watch this File
|
| File Information |
| Description |
This example shows how to load a C DLL into Matlab and make a call to functions it contains. In addition, a C-like M file implementation of the same functionality is included for comparison. Furthermore, a vectorized M file has been added to try to match the performance of the library call.
Files:-
conv.c and conv.h : use these to create the dll called conv.dll
myconvm1 : C-like M file that performs the same thing as myconv in conv.dll
myconvm2 : vectorized M file with performance approaching that of myconv in conv.dll
myscr : script that shows how to load the library and that times the execution times of the different versions |
| MATLAB release |
MATLAB 7.4 (R2007a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (7) |
| 24 May 2007 |
J Mac
|
|
|
| 11 Jun 2007 |
Maurice Stassen
|
|
|
| 09 Nov 2007 |
alexander zambrano
|
|
|
| 10 Apr 2008 |
ras red
|
|
|
| 14 Jun 2008 |
Milan Pipersky
|
|
|
| 29 Oct 2009 |
Ulf
|
|
|
| 09 Feb 2012 |
yossi kfir
|
|
|
|
Contact us at files@mathworks.com