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

- Oct 18th 2010, 07: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. - Oct 19th 2010, 04:06 AMCaptainBlack