%% Display Optimization Expression
% Create an optimization variable and an expression.

x = optimvar('x',3,3);
A = magic(3);
expr = sum(sum(A.*x));

%
% Display the expression.

showexpr(expr)

% Copyright 2012 The MathWorks, Inc.