Run matlab function in excel

I have the following cells in an excell sheet:
Power Year
24200 2021
Power is an input number. Under Year, there is a hyperlink to the spreadsheet Data2021, containing a large amount of data for the year 2021.
Now I want to run this function:
function[start, finish, time]=FLEX2(Power,Year)
start, finish and time are all vectors of 9x1, which I would like to be shown on another sheet in the file.
How can I do this using Spreadsheet Link? I would like it to run without opening MATLAB, since my coworkers are not familiar with it.

回答 (1 件)

Amit Dhakite
Amit Dhakite 2023 年 4 月 12 日

0 投票

Hi Joel,
As per my understanding, you want to run MATLAB functions inside the excel sheet, without the use of opening MATLAB.
You can do that using Excel Add-ins Using MATLAB Compiler. By applying this add-in, you can create a MATLAB function and add it to the excel sheet as a package. Further this will enable you to use that function as a excel sheet formula.
To get started with the add-ins, kindly refer to the following links:

1 件のコメント

Joel
Joel 2023 年 4 月 14 日
Hi
I have made a request for MATLAB Compiler with no response.
Since your staff, can you make a request for me?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeData Import from MATLAB についてさらに検索

製品

リリース

R2023a

質問済み:

2023 年 4 月 11 日

コメント済み:

2023 年 4 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by