semilog plot with a self defined x-axis range
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Walter Roberson
2023년 12월 5일
이동: Walter Roberson
2023년 12월 5일
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])
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!