Excelで自作関数(.mファイル)を実行する

38 ビュー (過去 30 日間)
Haruhito Kato
Haruhito Kato 2020 年 6 月 2 日
回答済み: Haruhito Kato 2020 年 6 月 3 日
function x = test(a, b)
x = a + b;
end
上記の関数を.mファイルで自作したとして、
入出力にEXCELのセルを指定し、
ボタン押下で実行させるにはどうすればよいですか?

採用された回答

michio
michio 2020 年 6 月 2 日
エクセル上で MATLAB で作った関数を実行する方法としては・・大きく2つあります。
  1. Spreadsheet Link : https://jp.mathworks.com/products/spreadsheet-link.html
  2. MATLAB Compiler : https://jp.mathworks.com/products/compiler.html#microsoft-excel
1 つめは Excel と MATLAB を繋ぐインターフェースの役割を持つ製品、ということで Excel 操作を行う PC 上に MATLAB のライセンスが必要です。2 つ目は MATLAB の関数から Excel のアドインを作ります。MATLAB のライセンスがない環境でも使えるアドインを作るので、アドインを配布するなどの用途に向いているかと思います。
1つ目の方法に関しては以下のビデオ(英語)で雰囲気をお伝えできるかもしれませんので、参考まで。

その他の回答 (1 件)

Haruhito Kato
Haruhito Kato 2020 年 6 月 3 日
ありがとうございます。

カテゴリ

Help Center および File ExchangeData Export to MATLAB についてさらに検索

製品


リリース

R2013b

Community Treasure Hunt

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

Start Hunting!