Use Global Variable In Function Matlab