I couldn’t figure out, how I could plot three different equations with three variables, namely x,y and z in MATLAB or any other Mathematical Softwares. I know that there’s a way we could plot multiple curves with two variables in MATLAB, but is there any alternative for 3D graphs, as such?

The question is related to Graphical Method in Linear Programming with 3 variables. These are the equations I need to plot in 3D, along with positivity constraints, ie. x=0, y=0 and z=0

```
x+y+z=450
7x+5y+13z=3000
0.05x+0.1y+0.2z=55
```

I tried researching a lot about 3D graphical method, but I just found that it’s too difficult to find the solution, hence we use Simplex method, as it is more efficient, but is it possible that this could also be solved by a graphical method, as such.

I also tried using CDF Player for Mathematica, but to no avail. Could anyone tell me if I could plot them manually too, as it seems 3D plotting is too difficult to do by hand.

Mathematics Asked on December 31, 2020

1 Answers$$x+y+z=450$$ isn't a function (well, it is an implicit curve), while

$$z=450-x-y$$

is. You can plot it using the following code:

```
x=[0:1:10];
y=[0:1:10];
[X,Y]=meshgrid(x,y);
Z=450-X-Y;
surf(X,Y,Z)
```

You can also remove the positive values of $Z$, by using a little trick:

```
Z(Z<0)=nan;
```

Here, you are setting all negative values of $Z$ to Nan. Nan is skipped by Matlab when you plot something.

Answered by the_candyman on December 31, 2020

5 Asked on January 5, 2022

analysis convergence divergence real analysis sequences and series summation

1 Asked on January 5, 2022

1 Asked on January 5, 2022 by yahya-b-jaber

3 Asked on January 5, 2022

4 Asked on January 5, 2022 by kirito

convergence divergence improper integrals integration real analysis

3 Asked on January 5, 2022 by hardik-ddod

0 Asked on January 5, 2022 by cyceez

continuity real analysis solution verification uniform convergence

1 Asked on January 5, 2022

2 Asked on January 5, 2022

0 Asked on January 5, 2022

divisibility elementary number theory number theory sequences and series

1 Asked on January 5, 2022 by mathematicaxyz

2 Asked on January 5, 2022

2 Asked on January 5, 2022 by ricin

2 Asked on January 5, 2022

0 Asked on January 5, 2022

calculus constraints lagrange multiplier multivariable calculus optimization

0 Asked on January 5, 2022

2 Asked on January 5, 2022 by portmadeleinecrumpet

Get help from others!

Recent Questions

- MouseLook Script “Pops” back to the last value when the script is enabled after being disabled or destroyed
- Unity app crashes when using unmodified custom Android manifest (didn’t find class “UnityPlayerActivity”)
- How do i draw a ray in unity
- How to test consistency of responses?
- How can I understand these variograms?

Recent Answers

- kjetil b halvorsen on How to test consistency of responses?
- Philipp on How do i draw a ray in unity
- eric_kernfeld on How to test consistency of responses?
- Justin Markwell on Unity app crashes when using unmodified custom Android manifest (didn’t find class “UnityPlayerActivity”)
- DMGregory on MouseLook Script “Pops” back to the last value when the script is enabled after being disabled or destroyed

© 2022 AnswerBun.com. All rights reserved.