%% Create Symbolic Objects from Returned Symbolic Array
% Certain functions, such as solve and symReadSSCVariables, can return a vector of symbolic variables or a cell array of symbolic variables and functions. These variables or functions do not automatically appear in the MATLAB workspace. Create these variables or functions from the vector or cell array by using syms.
% Solve the equation sin(x) == 1 by using solve. The parameter k in the solution does not appear in the MATLAB workspace.

syms x
eqn = sin(x) == 1;
[sol, parameter, condition] = solve(eqn, x, 'ReturnConditions', true);
parameter

% Create the parameter k by using syms. The parameter k now appears in the MATLAB workspace.

syms(parameter)

% Similarly, use syms to create the symbolic objects contained in a vector or cell array. Examples of functions that return a cell array of symbolic objects are symReadSSCVariables and symReadSSCParameters.
%
% Copyright 2019 The MathWorks, Inc.