How to set linear Y-axis with logarithm diagram?

조회 수: 51 (최근 30일)
Lotmeri
Lotmeri 2019년 2월 21일
편집: Adam Danz 2019년 2월 25일
Hi,
I have to set linear Y-axis with logarithm scale but I need to visualize the linear values ( only Y-axis, not X).
Thank you

채택된 답변

Adam Danz
Adam Danz 2019년 2월 21일
편집: Adam Danz 2019년 2월 25일
Set the 'YScale' axis property to 'log'
x = 1:10;
y = x.^2;
figure
h = plot(x,y)
set(gca, 'YScale', 'log')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Log Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by