I'm trying to plot this equation
log10(P)= A - (B/C+T)
Where P is on the y axis and T is on the x axis. The letters A, B and C vary with each substance and I have the figures for those. I've been trying to figure out how to plot it but am completely lost.

 採用された回答

Adam
Adam 2016 年 5 月 9 日
編集済み: Adam 2016 年 5 月 9 日

1 投票

Just create a T vector as e.g.
T = 1:100;
If you want P on the y-axis then you need to rearrange the equation a little to:
P = 10.^( A - ( B/C + T );
Then just plug in scalars for A, B and C and you will get a P-vector to plot.

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 5 月 9 日

0 投票

P = 10.^(A - (B./C+T));
plot(T, P)

カテゴリ

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

質問済み:

Tee
2016 年 5 月 9 日

編集済み:

2016 年 5 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by