フィルターのクリア

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 Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by