how to make log axis scale

1 visualizzazione (ultimi 30 giorni)
Khaled aL Qattawi
Khaled aL Qattawi il 8 Lug 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');

Risposta accettata

Abderrahim. B
Abderrahim. B il 8 Lug 2022
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 Commento
Khaled aL Qattawi
Khaled aL Qattawi il 8 Lug 2022
hi, yes it works now, i will modify more, thanks

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Log Plots in Help Center e File Exchange

Tag

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by