matlab - 配置 Octave 避免自动 endfor、endif 自动完成

标签 matlab octave

我正在使用 Octave 来教我的学生。该类(class)是关于 MATLAB 和 Octave 的,我们需要所有代码在 MATLAB 和 Octave 之间兼容。安装在大学计算机上的 Octave 版本在键入程序时会自动设置一个 endif 或 endfor,我们需要所有代码块来简单地使用 end。
有没有办法将 Octave 配置为不自动执行此 endif 或 endfor 自动完成?

最佳答案

在 MacOS 上的 Octave v4.4.1 中,Preferences->Editor 中有一个选项(您必须向下滚动才能看到它):
enter image description here

关于matlab - 配置 Octave 避免自动 endfor、endif 自动完成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64816229/

相关文章:

python - 使用 oct2py 的困难

octave - 矩阵和向量之间的最小距离

java - 从 Java 启动 Cygwin 进程

python - Matlab 重现函数

arrays - Matlab:将矩阵 reshape 为一维数组,并将重叠元素加在一起

matlab - 无法让 FFT 在 Octave 中工作

arrays - MATLAB/ Octave : Increment array with an array of indexes

machine-learning - 向量化梯度下降函数

matlab - 将函数作为参数传递给函数

Matlab,从数组中删除小于平均值的元素?