semilog plot with a self defined x-axis range
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a time series data and I would like to plot them in the semilogx ranging from [10^(-4) to 10^2] as the attached figure. May I know how to do that?
0 Kommentare
Antworten (1)
Walter Roberson
am 5 Dez. 2023
Verschoben: Walter Roberson
am 5 Dez. 2023
T = readtable('data.xlsx', 'VariableNamingRule', 'preserve');
whos T
T.Properties.VariableNames
plot(T, "return period (year)", "surge");
set(gca, 'XScale', 'log')
xlim([10^-4, 10^2])
Siehe auch
Kategorien
Mehr zu Data Exploration 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!
