[英]Octave error: undefined near line 1 column 21
I need to define a grid that goes from zero to the maximum of the data (100 steps) This is the command I was supposed to use:我需要定义一个从零到最大数据的网格(100 步)这是我应该使用的命令:
zgrid = 0:zmax/100:zmax
In my case "z" is called "Red", so I wrote:在我的情况下,“z”被称为“红色”,所以我写道:
zgrid = 0:Redmax/100/Redmax
But it returns an error:但它返回一个错误:
error: 'Redmax' undefined near line 1 column 20
What did I do wrong?我做错了什么?
This problem arises whenever the Octave scripts are saved in a different path/location from the default path where all the scripts are saved.每当 Octave 脚本保存在与保存所有脚本的默认路径不同的路径/位置时,就会出现此问题。 I managed to resolve it by moving all the scripts to a default location which was the Ubuntu home directory for me.
我设法通过将所有脚本移动到默认位置来解决它,该位置对我来说是 Ubuntu 主目录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.