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

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 ?

 採用された回答

VBBV
VBBV 2023 年 3 月 14 日

1 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by