Here's a basic LP example that shows how to use linprog (the LP solver in Optimization Toolbox): http://www.mathworks.com/help/toolbox/optim/ug/bsmt5ib.html
Good luck!
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!