log10 vs semilog

15 ビュー (過去 30 日間)
Samantha Cole
Samantha Cole 2021 年 4 月 8 日
編集済み: William Rose 2021 年 4 月 8 日
why does the graph of semilogy(gateVoltage, Draincurrent) not match the graph of plot(gateVoltage, log10(Draincurrent))?
both curves match perfectly in shape, but the semilogy y curve has very small positive y values while the log10 curve has large negative y values.

回答 (1 件)

William Rose
William Rose 2021 年 4 月 8 日
編集済み: William Rose 2021 年 4 月 8 日
In the first case, the actual value Draincurrent is plotted on the vertical axis, and the vertical axis has log scaling.
In the second case, the log of Draincurrent is plotted on the vertical axis, and the vertical axis has linear (i.e. normal) scaling. I assume your DrainCurrent is <1 (and >0), which is why log10(Draincurrent) is negative.

カテゴリ

Help Center および File ExchangeData Logging についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by