%% Check Existence of Workspace Variable
% Create a variable named testresults, and then confirm its existence in the workspace.

testresults = magic(5);
exist testresults

% A variable named testresults exists in the workspace.
% Copyright 2012 The MathWorks, Inc.