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

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

Akzeptierte Antwort

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

Weitere Antworten (1)

Haruhito Kato
Haruhito Kato am 3 Jun. 2020
ありがとうございます。

Kategorien

Mehr zu Data Export to MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2013b

Community Treasure Hunt

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

Start Hunting!