MATLAB Compiler | ![]() ![]() |
Invoking the MEX-File
Invoke the MEX-file version of gasket from the MATLAB interpreter the same way you invoke the M-file version.
MATLAB runs the MEX-file version (gasket.mex
, which is gasket.dll
on the PC) rather than the M-file version (gasket.m
). Given an M-file and a MEX-file with the same root name (gasket) in the same directory, the MEX-file takes precedence.
To display the Sierpinski Gasket, use
Figure 3-1, The Sierpinski Gasket for 50,000 Points, shows the results.
Figure 3-1: The Sierpinski Gasket for 50,000 Points
![]() | Compiling the M-File into a MEX-File | Compiler Options and Macros | ![]() |