MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Guide de l'utilisateur Page 110

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 354
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 109
6 Standalone Applications
Introduction
Suppose you want to create an application that calculates the rank of a
largemagicsquare. Onewaytocreatethisapplicationistocodethewhole
applicatio n in C or C++; however, this would require writing yo ur own magic
square, rank, and singular value routines. An easier way to create this
application is to write it as one or more M-files, taking advanta ge of the power
of MATLAB and its tools.
You can create MATLAB applications that take advantage of the mathematical
functions of MATLAB, yet do not require that end users own MATLAB.
Standalone applications are a convenient way to package the power of
MATLAB and to distribute a customized application to your users.
The source code for standalone C applications consists either entirely of
M-files or some combination of M -files, MEX-files, and C or C++ source code
files.
MATLAB Com piler takes your M-files and generates C source code functions
that allo w your M- files to be invoked from outside of interactive MATLAB.
After com piling this C s ource code, the resulting object file is linked with
the run-time libraries. A similar process is used to create C++ standalone
applications.
You can call MEX-files from MATLAB Compiler generated standalone
applications. The M E X- fi les w i ll then be loaded and called by the standalone
code.
6-2
Vue de la page 109
1 2 ... 105 106 107 108 109 110 111 112 113 114 115 ... 353 354

Commentaires sur ces manuels

Pas de commentaire