フィルターのクリア

How to plot multiple days' worth of data without overlapping?

7 ビュー (過去 30 日間)
Marian
Marian 2013 年 10 月 7 日
回答済み: dpb 2013 年 10 月 7 日
I am trying to plot temperature versus time (both vectors) over an entire month, and have data points every ten minutes. When I do this, it puts all data points that have the same time along the same axis. I'd like to know how to lay out the x-axis so that I have all points spread out and in chronological order.

採用された回答

dpb
dpb 2013 年 10 月 7 日
You don't say in what form your time data is encoded, but the easiest solution is to convert it to Matlab datenum serial dates and plot against it. Then you'll use datetick with the desired formatting to turn the x-axis into a time-based axis.
doc datenum % and friends
doc datetick % for further details and examples

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by