I believe that you need to get the matrix into the workspace first, before calling the solver with the Optimization Tool.
Alan Weiss
MATLAB mathematical toolbox documentation
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!