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

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

Respuesta aceptada

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

Más respuestas (1)

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

Categorías

Más información sobre Data Export to MATLAB en Help Center y File Exchange.

Productos


Versión

R2013b

Community Treasure Hunt

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

Start Hunting!