I have the following code which is a graphic rendering of the movement of a satellite around the Earth.
function ex global state; fh = figure(\'Menu\',\'none\',\
Finally, I have found that there was a cla command line, which was the guilty of the error, in the main program.