help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Variables across publish sections not recognized


From: Michael Suchoff
Subject: Variables across publish sections not recognized
Date: Fri, 18 Jan 2019 12:56:38 -0500

I get an undefined error after using "a" in section 2.
I'm pretty sure MATLAB doesn't have this problem.
using global declaration for a doesn't fix this.
If I change the ## to #, works OK.

tested in 4.4.1 windows release


## Section 1

a = 1;
a

## Section 2

b = a;

error: 'a' undefined near.....

reply via email to

[Prev in Thread] Current Thread [Next in Thread]