@Teodo: Thanks for the feedback and let us know your frustration with using the Scratchpad. Just want to let you know that we are actively working on an update to improve the user experience to make it more 'similar to a true MATLAB environment', as you commented. We will let you know when we have an update.
@xiongda: Please flag this solution using the 'Flag' link above the solution box. The administrators monitor the flags and remove cheat solutions.