Closed curow closed 5 years ago
change the 28th line to
global state = sample(1:3,weights(P[state,:]))
will eliminate the UndefVarError: state not defined Error.
This error is due to Julia's Weird Convention for writing to a global variable. here is a more clear explain at Stack Overflow
Thank you for the find, the codes been fixed :)
@h-Klok Just a suggestion. Mentioning the issue (by typing #2) in your Git commit title/message would allow easier tracking.
#2
change the 28th line to
will eliminate the UndefVarError: state not defined Error.
This error is due to Julia's Weird Convention for writing to a global variable. here is a more clear explain at Stack Overflow