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

 採用された回答

James Tursa
James Tursa 2016 年 12 月 22 日

0 投票

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 件のコメント

tala
tala 2016 年 12 月 24 日
thanks a lot for your answer

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeWrite C Functions Callable from MATLAB (MEX Files) についてさらに検索

質問済み:

2016 年 12 月 22 日

コメント済み:

2016 年 12 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by