help-octave
[Top][All Lists]
Advanced

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

Re: global variables


From: st.michal88
Subject: Re: global variables
Date: Wed, 22 Jan 2014 07:26:44 -0800 (PST)

I was thinking about all of these and encountered quite strange problem.

I am using global variables which are implemented in param.m file. Then
various functions call param and then use and modify given variable. Look at
this:

param.m :

global var A;


fun.m :

function fun
param;
global A;
A=2;
endfunction

After calling fun variable A is loaded, modified and after finishing
function does not exist!!!! When fun.m is not a function but script there is
no problem. Can anybody help me solving this? It is quite important for me
to have fun.m in form of function.

Greetings,
Michal




--
View this message in context: 
http://octave.1599824.n4.nabble.com/global-variables-tp4661206p4661263.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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