简体   繁体   中英

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:

zgrid = 0:zmax/100:zmax

In my case "z" is called "Red", so I wrote:

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. I managed to resolve it by moving all the scripts to a default location which was the Ubuntu home directory for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM