how to make log axis scale

조회 수: 1 (최근 30일)
Khaled aL Qattawi
Khaled aL Qattawi 2022년 7월 8일
댓글: Khaled aL Qattawi 2022년 7월 8일
the code has loading files, all i want make the y axis as log scale. please see the attached plot, please help.
clear all;
load 'X_theta.txt';
X=X_theta;
load 'Y_POE.txt';
Y=Y_POE;
plot(X,Y);
title('Correction Factor And Probability of Exceedance');
xlabel('Correction Factor Θz');
ylabel('Probability of Exceedance PoE');

채택된 답변

Abderrahim. B
Abderrahim. B 2022년 7월 8일
Hi!
Try to use semilogy(X,Y) instead of plot.
clear all;
load 'X_theta.txt';
X=X_theta;
load 'Y_POE.txt';
Y=Y_POE;
semilogy(X,Y);
title('Correction Factor And Probability of Exceedance');
xlabel('Correction Factor Θz');
ylabel('Probability of Exceedance PoE');
  댓글 수: 1
Khaled aL Qattawi
Khaled aL Qattawi 2022년 7월 8일
hi, yes it works now, i will modify more, thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by