MATLAB COMPILER RELEASE NOTES Betriebsanweisung Seite 64

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 264
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 63
3 Getting Started with MEX-Files
3-6
tic; x = gasket(50000); toc
MATLAB runs the MEX-file version (gasket.mex) 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.
This produces
elapsed_time =
5.2880
The MEX-file runs about 33% faste r than the M-file version.
Note These are optimized times.
To display the Sierpinski Gaske t, use
imagesc(x); colormap([1 1 1;0 0 0]);
axis equal tight
This figure shows the results.
Figure 3-1: The Sierpinski Gasket for 50,000 Points
Seitenansicht 63
1 2 ... 59 60 61 62 63 64 65 66 67 68 69 ... 263 264

Kommentare zu diesen Handbüchern

Keine Kommentare