How can i define a global variable in matlab

global a ;

a = 56;

i cannot use the value of a inside a function

Please help me.

Printable View

- October 18th 2010, 06:54 AMAUCCmatlab global variable
How can i define a global variable in matlab

global a ;

a = 56;

i cannot use the value of a inside a function

Please help me. - October 19th 2010, 03:06 AMCaptainBlack