How can i plot the graph from the 3 variables equation ?

2 views (last 30 days)
I have the 3 variables eqaution, for example X = A(B+25)
Where A = 0:500:2000 and B = 0:1:100
How can I get all of the answers of X variable and plot the graph of the X, A, and B variables ?

Accepted Answer

VBBV on 14 Mar 2023
A = 0:500:2000;
B = 0:1:100;
[AA BB] = meshgrid(A,B);
X = AA.*(BB+25);
xlabel A
ylabel B
zlabel X

More Answers (0)


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!