title: How to solve a linear programing in matlab in canonical representation?
body: <p>Is it possible to enter matlab a string like that:</p>
  
  <pre><code>MAX  140 x1 + 160 x2 +x3
  
  SUBJECT TO
  
  2 x1 + 4 x2 &lt;= 28
  
  5x1 + 5.333x2 -500X3 = 0
  
  x1 &lt;= 8
  
  x2 &lt;= 6
  
  END
  </code></pre>
  
  <p>The toolbox I have installed:</p>
  
  <blockquote>
    <blockquote>
      <p>v = ver;
      setdiff({v.Name}, 'MATLAB')'</p>
    </blockquote>
  </blockquote>
  
  <p>ans = </p>
  
  <pre><code>'Aerospace Blockset'
  'Aerospace Toolbox'
  'Bioinformatics Toolbox'
  'Communications System Toolbox'
  'Computer Vision System Toolbox'
  'Control System Toolbox'
  'Curve Fitting Toolbox'
  'DSP System Toolbox'
  'Database Toolbox'
  'Datafeed Toolbox'
  'Econometrics Toolbox'
  'Embedded Coder'
  'Filter Design HDL Coder'
  'Financial Derivatives Toolbox'
  'Financial Toolbox'
  'Fixed-Income Toolbox'
  'Fixed-Point Toolbox'
  'Fuzzy Logic Toolbox'
  'Global Optimization Toolbox'
  'IEC Certification Kit'
  'Image Acquisition Toolbox'
  'Image Processing Toolbox'
  'Instrument Control Toolbox'
  'MATLAB Builder JA'
  'MATLAB Coder'
  'MATLAB Compiler'
  'MATLAB Distributed Computing Server'
  'MATLAB Report Generator'
  'Mapping Toolbox'
  'Model Predictive Control Toolbox'
  'Neural Network Toolbox'
  'Optimization Toolbox'
  'Parallel Computing Toolbox'
  'Partial Differential Equation Toolbox'
  'Phased Array System Toolbox'
  'RF Toolbox'
  'Robust Control Toolbox'
  'Signal Processing Toolbox'
  'SimBiology'
  'SimDriveline'
  'SimElectronics'
  'SimEvents'
  'SimHydraulics'
  'SimMechanics'
  'SimPowerSystems'
  'SimRF'
  'Simscape'
  'Simulink'
  'Simulink 3D Animation'
  'Simulink Coder'
  'Simulink Control Design'
  'Simulink Design Optimization'
  'Simulink Fixed Point'
  'Simulink Report Generator'
  'Simulink Verification and Validation'
  'Stateflow'
  'Statistics Toolbox'
  'Symbolic Math Toolbox'
  'System Identification Toolbox'
  'SystemTest'
  'Wavelet Toolbox'
  </code></pre>