how to make log axis scale
조회 수: 1 (최근 30일)
이전 댓글 표시
the code has loading files, all i want make the y axis as log scale. please see the attached plot, please help.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1059625/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1059625/image.png)
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');
댓글 수: 0
채택된 답변
Abderrahim. B
2022년 7월 8일
Hi!
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');
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!