%% Return Identifiers in Cell Array
% Create a character vector that contains an expression. Return the identifiers in a cell array.

expr = 'A + B .* (exp(i*theta) - exp(-i*theta)) / 2*i'

%

C = symvar(expr)

% Copyright 2012 The MathWorks, Inc.