'x10^5' show up in MATLAB plots

6 ビュー (過去 30 日間)
Ede gerlderlands
Ede gerlderlands 2013 年 6 月 24 日
Why is 'x10^5' show up in MATLAB plots once I change 'datenum' to actual dates using 'datetick'. In the same manner the datenum and the julian time I converted appear overlapped . here is part of the code
plotyy(times,Hm11,times,Y11);
datetick('x','dd/mm/yy','keepticks');
set(gca,'XMinorTick','on');

採用された回答

Leah
Leah 2013 年 6 月 24 日
There is a x-axis for each y-axis so you need to change the formatting on both of them not just the current one (gca)
[AX,H1,H2] = plotyy(times,Hm11,times,Y11);
datetick('x','dd/mm/yy','keepticks');
axes(AX(2))
datetick('x','dd/mm/yy','keepticks');
  1 件のコメント
Ede gerlderlands
Ede gerlderlands 2013 年 6 月 24 日
thank you very much

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDates and Time についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by