Matt - the function contains looks to have been introduced in r2016b so that function is most not likely available to you (given that your version is r2015a). You can try the following though. Continue as before to get all the handles to the static text controls
allStaticTextHandles = findall(handles.figure1,'style','text');
Then get the tags for each one (note that I'm using code for r2014a so it may be different for your version)
allStaticTextTags = get(allStaticTextHandles, 'Tag');
And now you could use strfind to find those tags that contain the string 'Output'. The result of strfind(allStaticTextTags, 'Output')
will be a cell array of empty arrays or indices of where the string 'Output' starts in the tag. For example,
and so you would need to find which of these is non-empty and then clear the contents of that static text control.
Best Answer