3-3 MATLAB ????構?對? API

bg MEX ɮפeAzF MATLAB ܼƪƵcAHKM C ƵciCMATLAB ̥DnƫAO mxArrayAO@ C yUc]Structure^Aܤ֥]tFUCTG

  1. MATLAB ܼƦW
  2. ƫA
  3. ƩνƼ
  4. O_}x}]Sparse Matrix^
bC mxArray cUA]tӫС]Pointers^pr piAOoܼƪ곡M곡A̳OƫA double @}CCooӫСA MATLAB Ѫ API mxGetPr mxGetPi ӨoAzLoӫСANisY MATLAB ܼƤҦƭȡ]ҦpG@ӯx}AYӤ곡ε곡ȡAάYӵc}Cȵ^C

MATLAB ѤFܦh API ơAoǨƪW٨̨\ӦPrY]Prefixes^ApUG

  1. H mx rY API ơAN MATLAB ܼƸơ]A mxArray^sAҦp mxGetPr]Ǧ^곡С^BmxGetPi]Ǧ^곡С^BmxGetM]ox}Cס^BmxGetN]ox}ס^BmxCreateDoubleMatrix]ܼƫA double x}^C
  2. H mex rY API ơANb MATLAB ҤU檺ʧ@AҦp mexErrMsgTxt]b MATLAB LX~TAøX MEX ɮס^BmexCallMATLAB]Is MATLAB H MATLAB ƭȹB^BmexPrintf]b MATLAB LXT^C
  3. H mat rY API ơAN MAT ɮתŪgγBzAҦpGmatGetArray]q MAT ɮŪ mxArray }C^AmatDeleteArray]q MAT ɮײ mxArray }C^C
o API ƺchAUPS\AziѾ\Ĥ@`Ҵ쪺uMATLAB Application Program Interface ReferencevUAξAX API ơC
MATLAB{]pGig