-3

I want to draw graph in matlab but I dont know how to program it in matlab. I am facing problems.

gone = -xone-xtwo+10<=0; 
gtwo = -2*xone+3*xtwo-10<=0
H.Muster
  • 9,297
  • 1
  • 35
  • 46
user1568159
  • 1
  • 1
  • 3

1 Answers1

2

You sound like you're new to matlab, so instead of trying to "program" the graph, why don't you try using the user interface provided?

Do the following:

  1. In your workspace, right-click the variable you want to graph.

  2. Click on plot catalog.

  3. Choose the type of graph you want, then click plot.

Even better, if you want to see how to actually use code to build the plot that you now have, just go to the window where your plot was generated, and click File - Generate Code.

Kev
  • 118,037
  • 53
  • 300
  • 385
Colin T Bowers
  • 18,106
  • 8
  • 61
  • 89