How to deploy function from MATLAB to Microsoft excel?

function ypred = mypredict(tbl)
%#function fitrtree
load('matlab.mat');
load('Trainingdata.mat')
ypred = trainedModel.predictFcn(Trainingdata);
end
This is made after trained the data from regression learner
How to deploy this function in form of web app and in excel to get new output by giving new inputs ?

 採用された回答

Bhomik Kankaria
Bhomik Kankaria 2021 年 2 月 27 日

0 投票

Hi Manoj,
You can create Excel Add-In from MATLAB for your function to use in Excel. Refer below link to know more about the steps required to do the same-

3 件のコメント

Manoj kumar Beriya
Manoj kumar Beriya 2021 年 2 月 27 日
yes, I am using same thing but during compiling , it says that supported complier is not found. But, compiler is in the system? why are happening it?
Bhomik Kankaria
Bhomik Kankaria 2021 年 2 月 27 日
編集済み: Bhomik Kankaria 2021 年 2 月 27 日
When compiling Excel add-ins or COM components from MATLAB using MinGW, you will also need to install Windows SDK 10.
See the following link on installing Windows SDK 10 with MinGW:
You can take a look at the software requirements for using the MATLAB Compiler with other MATLAB releases in the following link:
Manoj kumar Beriya
Manoj kumar Beriya 2021 年 2 月 28 日
Thanks
It is working

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

その他の回答 (0 件)

カテゴリ

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by