How to a plot a line for $ax+by-c$ in MATLAB?

4.8k Views Asked by At

The title basically says it all. I'm doing an assignment and need to include a plot of my scatter and the line generated by linprog().

I ran linprog() and got the values:

1.0000
1.0000
16.5000
12.5000

for a, b, c, and f, respectively. The equation for my line is:

ax + by - c = 0

I know it's a simple question, but I've been looking all night for an answer and nothing has presented itself. Can someone help me out?