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

43 visualizzazioni (ultimi 30 giorni)
Haruhito Kato
Haruhito Kato il 2 Giu 2020
Risposto: Haruhito Kato il 3 Giu 2020
function x = test(a, b)
x = a + b;
end
上記の関数を.mファイルで自作したとして、
入出力にEXCELのセルを指定し、
ボタン押下で実行させるにはどうすればよいですか?

Risposta accettata

michio
michio il 2 Giu 2020
エクセル上で 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つ目の方法に関しては以下のビデオ(英語)で雰囲気をお伝えできるかもしれませんので、参考まで。

Più risposte (1)

Haruhito Kato
Haruhito Kato il 3 Giu 2020
ありがとうございます。

Categorie

Scopri di più su Data Export to MATLAB in Help Center e File Exchange

Prodotti


Release

R2013b

Community Treasure Hunt

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

Start Hunting!