Global Variable (Value Read Serially from Matlab) Becomes 0

Thanks for your reply. Is there a workaround for this so that the data for a variable will remain even if I manipulate the serial object from the Matlab. Thanks.