How do I create a simple Octave distributable without installing Octave

前端 未结 7 1081
野趣味
野趣味 2020-12-01 05:50

The Octave documentation on this subject is both intimidating and sparse.

I did not know where else to document the solution I found, so I am posting here. I apolog

7条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-01 06:12

    Just to add that if you want to run a script instead of an m function, then the line of the embedded.cc:

    octave_value_list out = feval ("your_custom_m_file", in);
    

    should be:

    octave_value_list out = feval ("your_custom_m_script");
    

    Also use 'which' to find where the missing functions are packed. For example for the min function:

    octave:22> which min
    

    min is a function from the file C:\Octave\Octave3.6.2_gcc4.6.2\lib\octave\3.6.2\oct\i686-pc-mingw32\max.oct

提交回复
热议问题