help-octave
[Top][All Lists]
Advanced

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

Re: How to use existing variable


From: Thomas Weber
Subject: Re: How to use existing variable
Date: Thu, 4 Nov 2010 22:48:28 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Fri, Nov 05, 2010 at 12:36:02AM +0530, Neil Ghosh wrote:
> Hi,
> 
> I have a variable X=csvread('XXXX'); with huge data in it.
> 
> My function is written in a .m file  "MyPrg.m" and it uses the data in X and
> have reference to that variable.

Can you make MyPrg.m available?

> Whenever I call MyPrg in command line it give me error 'X' is undefined ,
> however I dont have "clear" in my function
> It should recognize the global variable X.

If X is indeed global, you must mention that in every function you use
X. See 'doc global' for more information.

        Thomas


reply via email to

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