how to plot two figures in one figure with different axes
1 回表示 (過去 30 日間)
古いコメントを表示
I am trying to plot flows collected in different time of the day for different days in the same plot. As the moments of collection are not exactly the same for each day the second plot is drawn in the continues of the first one:![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/219166/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/219166/image.jpeg)
whle I need them something like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/219167/image.jpeg)
2 件のコメント
Jan
2019 年 5 月 13 日
And what are your inputs? If you post the relevant part of the code, we can suggest a modification. But without seeing the code, the readers have to invent it.
採用された回答
Jan
2019 年 5 月 13 日
Simply replace the line:
date2 = datenum(year2, month2, day2, hour2, min2, sec2);
by
date2 = datenum(year1, month1, day1, hour2, min2, sec2);
Then the data will use the same day.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Dates and Time についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!