how to make log axis scale
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Khaled aL Qattawi
am 8 Jul. 2022
Kommentiert: Khaled aL Qattawi
am 8 Jul. 2022
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');
0 Kommentare
Akzeptierte Antwort
Abderrahim. B
am 8 Jul. 2022
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');
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Log Plots 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!