MEX 関数でのヘルプ ファイルの使用
コメント行を含む MATLAB® スクリプトを作成することで、MEX 関数の動作を記録することができます。help
コマンドは MATLAB スクリプトを検索し、適切なテキストを表示します。
たとえば、arrayProduct.c
MEX ソース ファイルにある次のテキストをファイル arrayproduct.m
にコピーします。
% arrayproduct.m Help file for arrayProduct MEX-file. % arrayProduct.c - example in MATLAB External Interfaces % % Multiplies an input scalar (multiplier) % times a 1xN matrix (inMatrix) % and outputs a 1xN matrix (outMatrix) % % The calling syntax is: % % outMatrix = arrayProduct(multiplier, inMatrix) % % This is a MEX-file for MATLAB. % Copyright 2007-2014 The MathWorks, Inc. %
次を入力します。
help arrayproduct
MATLAB にコメントが表示されます。