Plot system of equations
1 view (last 30 days)
Show older comments
Please, I need help with plotting a graph of this equatiion systems
0 Comments
Answers (1)
Bjorn Gustavsson
on 4 Mar 2020
Edited: Bjorn Gustavsson
on 4 Mar 2020
Take it step-by-step.
Take pen and paper. Plot a cartesian coordinate system with x1 and x2 at the axes.
For 1.6 you have 2 linear constraints. Plot the lines of their boundary, sketch in the regions
where they are satisfied. That gives you the allowed region for your optimization. Calculate
the gradient of your function F, plot that arrow (since it is a linear function in x1 and x2). Plot that
arrow on the graph.
For 1.7 do the same. Step by-step. Here there will be another couple of steps since you have
additional constraints.
For doing this with matlab: have a look at pcolor, double and meshgrid.
HTH
0 Comments
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!