title: Maximize 3x+y with constraints in Matlab
body: <p>I need to maximize the equation 3x+y in matlab with the following constraints:</p>
  
  <p>2x+y&lt;=6,
  x+3y&lt;=9, and x,y>=0</p>
  
  <p>I am having a really hard time figuring out how to put in the constraints in a way that I can relate them back to the original equation. I am new to matlab and am having trouble figuring this out.</p>
  
  <p>Thanks in advance!</p>