octave: load many functions from single file

后端 未结 2 1083
借酒劲吻你
借酒劲吻你 2020-12-30 09:58

How can I put multiple functions in one file and later get access to all of them in the octave interpreter ? I don\'t want to have a thousand files and want to group functio

相关标签:
2条回答
  • 2020-12-30 10:42

    What you're looking for is called “script files”, defined there: http://www.gnu.org/software/octave/doc/interpreter/Script-Files.html

    0 讨论(0)
  • 2020-12-30 10:44

    Once you have saved all your function definitions in a single script file, use source("filename") to have access to these functions within the interpreter.

    0 讨论(0)
提交回复
热议问题