[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.
- global variables, Jabcok, 2014/01/21
- Re: global variables, st.michal88, 2014/01/21
- Re: global variables, louis scott, 2014/01/21
- Re: global variables, Doug Stewart, 2014/01/21
- Re: global variables, Michal Studniarek, 2014/01/21
- Re: global variables, Jose, 2014/01/21
- Re: global variables, Mike Miller, 2014/01/21
- Re: global variables, Michal Studniarek, 2014/01/21
- Re: global variables,
st.michal88 <=
- Re: global variables, st.michal88, 2014/01/22
- Re: global variables, Doug Stewart, 2014/01/22
- Re: global variables, st.michal88, 2014/01/22
- Re: global variables, c., 2014/01/22