Adding global var into matlab draw.