how to call prepared function (m file)

1 次查看(过去 30 天)
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 个评论
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 CenterFile Exchange 中查找有关 Downloads 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by