Jajaja, je dois dire que j'ai beaucoup utilisé google translate... mais merci!
Le code du header est:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
| //
// MATLAB Compiler: 4.8 (R2008a)
// Date: Tue Nov 05 11:02:57 2013
// Arguments: "-B" "macro_default" "-B" "cpplib:getK" "-W" "cpplib:getK" "-T"
// "link:lib" "getK.m"
//
#ifndef __getK_h
#define __getK_h 1
#if defined(__cplusplus) && !defined(mclmcrrt_h) && defined(__linux__)
# pragma implementation "mclmcrrt.h"
#endif
#include "mclmcrrt.h"
#include "mclcppclass.h"
#ifdef __cplusplus
extern "C" {
#endif
#if defined(__SUNPRO_CC)
/* Solaris shared libraries use __global, rather than mapfiles
* to define the API exported from a shared library. __global is
* only necessary when building the library -- files including
* this header file to use the library do not need the __global
* declaration; hence the EXPORTING_<library> logic.
*/
#ifdef EXPORTING_getK
#define PUBLIC_getK_C_API __global
#else
#define PUBLIC_getK_C_API /* No import statement needed. */
#endif
#define LIB_getK_C_API PUBLIC_getK_C_API
#elif defined(_HPUX_SOURCE)
#ifdef EXPORTING_getK
#define PUBLIC_getK_C_API __declspec(dllexport)
#else
#define PUBLIC_getK_C_API __declspec(dllimport)
#endif
#define LIB_getK_C_API PUBLIC_getK_C_API
#else
#define LIB_getK_C_API
#endif
/* This symbol is defined in shared libraries. Define it here
* (to nothing) in case this isn't a shared library.
*/
#ifndef LIB_getK_C_API
#define LIB_getK_C_API /* No special import/export declaration */
#endif
extern LIB_getK_C_API
bool MW_CALL_CONV getKInitializeWithHandlers(mclOutputHandlerFcn error_handler,
mclOutputHandlerFcn print_handler);
extern LIB_getK_C_API
bool MW_CALL_CONV getKInitialize(void);
extern LIB_getK_C_API
void MW_CALL_CONV getKTerminate(void);
extern LIB_getK_C_API
void MW_CALL_CONV getKPrintStackTrace(void);
extern LIB_getK_C_API
bool MW_CALL_CONV mlxGetK(int nlhs, mxArray *plhs[], int nrhs, mxArray *prhs[]);
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
/* On Windows, use __declspec to control the exported API */
#if defined(_MSC_VER) || defined(__BORLANDC__)
#ifdef EXPORTING_getK
#define PUBLIC_getK_CPP_API __declspec(dllexport)
#else
#define PUBLIC_getK_CPP_API __declspec(dllimport)
#endif
#define LIB_getK_CPP_API PUBLIC_getK_CPP_API
#else
#if !defined(LIB_getK_CPP_API)
#if defined(LIB_getK_C_API)
#define LIB_getK_CPP_API LIB_getK_C_API
#else
#define LIB_getK_CPP_API /* empty! */
#endif
#endif
#endif
extern LIB_getK_CPP_API void MW_CALL_CONV getK(int nargout, mwArray& K
, const mwArray& teta);
#endif
#endif |
Normalement, une fonction est appelée comme ceci:
c2 = CorrecteurMB( theta1 , theta1Point , theta2Point , &phi , &xn , &P , &teta ) ;
Mais je ne trouve pas les paramètres dans le code...
Partager