help-octave
[Top][All Lists]
Advanced

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

Re: declare global as matrix...problem to use it


From: Doug Stewart
Subject: Re: declare global as matrix...problem to use it
Date: Tue, 3 Jul 2018 10:24:40 -0400



On Tue, Jul 3, 2018, 9:38 AM turbofib, <address@hidden> wrote:
hi,
i declare a global in the main program(it is a matrix )

global a;

a=[1 12 30;3 5 50;6 3 2]


i use it in a function but i get the following error

error: 'a' undefined near line 3 column 8
error: called from
    mainGlobal at line 3 column 7








You must declare it global in both places.


reply via email to

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