How do I import/include MATLAB functions?

前端 未结 4 1105
谎友^
谎友^ 2021-02-11 16:13

I have some MATLAB functions defined in .m files and I\'d like to import them into MATLAB (as in I\'d like to be able to call them as I do a built-in function). How can I do thi

4条回答
  •  没有蜡笔的小新
    2021-02-11 16:46

    You should be able to put them in your ~/matlab on unix.

    I'm not sure which directory matlab looks in for windows, but you should be able to figure it out by executing userpath from the matlab command line.

提交回复
热议问题