log10 vs semilog
조회 수: 17 (최근 30일)
이전 댓글 표시
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
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Logging에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!