how to call prepared function (m file)

1 Ansicht (letzte 30 Tage)
sani
sani am 16 Mär. 2020
Kommentiert: Sriram Tadavarty am 16 Mär. 2020
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?

Akzeptierte Antwort

Sriram Tadavarty
Sriram Tadavarty am 16 Mär. 2020
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 Kommentare
sani
sani am 16 Mär. 2020
yes it works
Sriram Tadavarty
Sriram Tadavarty am 16 Mär. 2020
Then, it should work if used in script directly. Use it with scatter_kde(x,y) in the script

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Downloads finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by