how to call prepared function (m file)

1 回表示 (過去 30 日間)
sani
sani 2020 年 3 月 16 日
コメント済み: Sriram Tadavarty 2020 年 3 月 16 日
Hi,
I downloaded a function a function and I want to use it in my script. I tried to call it by using 'load' and 'import' but got error.
how can I call it?

採用された回答

Sriram Tadavarty
Sriram Tadavarty 2020 年 3 月 16 日
Hi Sani,
You can directly call the function with its name, provided it is in the path. For example your downloaded function name is myfun.m, then directly call with its name and required inputs in the script you want to access.
Regards,
Sriram
  8 件のコメント
sani
sani 2020 年 3 月 16 日
yes it works
Sriram Tadavarty
Sriram Tadavarty 2020 年 3 月 16 日
Then, it should work if used in script directly. Use it with scatter_kde(x,y) in the script

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by