フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Hello, I have different time series data in differend time spane. eg. One I have from year 2004 to 2011 and one I have year 2007 to 2011 . How to get a plot so that I can get both time series with my X- axis within the range from 2004 to 2011

1 回表示 (過去 30 日間)
Chris Martin
Chris Martin 2012 年 12 月 23 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello, I have different time series data in differend time spane. eg. One I have from year 2004 to 2011 and one I have year 2007 to 2011 . How to get a plot so that I can get both time series with my X- axis within the range from 2004 to 2011

回答 (1 件)

José-Luis
José-Luis 2012 年 12 月 23 日
Assuming you have your dates as a Matlab serial date number, and that you want to set the limits in the active figure:
set(gcf,'XLim',[datenum(2004,1,1) datenum(2011,12,31]);
If you don't know what a serial date number is, please have a look at
doc datenum

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by