Effacer les filtres
Effacer les filtres

a mex file in matlab program

5 vues (au cours des 30 derniers jours)
tala
tala le 22 Déc 2016
Commenté : tala le 24 Déc 2016
hello i have downloaded a code from mathworks. in the example of code, it starts with " mex eig3volume.c" i dont know how should i run this program

Réponse acceptée

James Tursa
James Tursa le 22 Déc 2016
To compile the mex routine, first place it in a working directory on the MATLAB path. Then make that your default directory and do this:
mex eig3volume.c
If that works, then you can call it like just like any other function. E.g.,
[ the output list ] = eig3volume( the input arguments );
If the compile doesn't work, it may be because you don't have a supported C compiler installed. You will have to do that before you can compile the mex routine.
  1 commentaire
tala
tala le 24 Déc 2016
thanks a lot for your answer

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB Compiler dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by