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.
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.
I can not afford to read that huge file everytime in my function code.