log10 vs semilog
17 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
0 Kommentare
Antworten (1)
William Rose
am 8 Apr. 2021
Bearbeitet: William Rose
am 8 Apr. 2021
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.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Data Logging finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!