简体   繁体   English

八度错误:第 1 行第 21 列附近未定义

[英]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.

相关问题 在函数接近尾声时出现运行时错误 5 - Getting runtime error 5 near the end of function function RouteHandler in./.cache/root.js:21 中的错误 - Error in function RouteHandler in ./.cache/root.js:21 PostgreSQL字符串连接:错误:“ msg”或附近的语法错误 - Postgresql string concatenation: error: syntax error at or near “msg” 得到的错误:原因:android.database.sqlite.SQLiteException:附近的“ of” - getting the error : Caused by: android.database.sqlite.SQLiteException: near “of” Bash/JQ 解析错误:第 1 行第 254 列值之间的预期分隔符 - Bash/JQ parse error: Expected separator between values at line 1, column 254 d3是未定义的错误 - d3 is undefined error 当我不使用运算符时,如何在Octave中修复不一致的参数错误? - How can I fix a nonconformant arguments error in Octave when I am not using an operator? 带“#”符号附近的C#stringbuilder错误的SQL查询 - SQL query with c# stringbuilder error near “=” symbol JScript运行时错误:“ $”未定义 - JScript runtime error: '$' is undefined 我正在创建一个类似Uber的应用程序,但它突然崩溃,并出现预期的错误BEGIN_ARRAY,但在第1行第1列路径$ STRING - I am creating an app like Uber but it suddenly crashed with error Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM