How can I introduce the break in the plot?

2 ビュー (過去 30 日間)
Ramakrishna Narasimha Swamy
Ramakrishna Narasimha Swamy 2021 年 5 月 31 日
回答済み: Konstantin Kuzmin 2023 年 11 月 27 日
I am using ThingSpeak platform to acquire the data from a temperature sensor. During night time, I do not acquire the data and starting the acquisition on the next day in the morning. When I plot data of last, say 200 acquisitions which includes yesterday's as well as today's data, using Matlab, l see a continuity between the last acquired data and the first data of today. Ideally, there should be break between the last acquired data and the first data of today. How can I introduce the break in the plot? The plot is attached as a reference.

回答 (2 件)

Image Analyst
Image Analyst 2021 年 5 月 31 日

Konstantin Kuzmin
Konstantin Kuzmin 2023 年 11 月 27 日
Introduce NaN when you want a line to break.
figure; plot([1 2 3 NaN 5 6 7],'-o');

カテゴリ

Help Center および File ExchangeData Acquisition Toolbox Supported Hardware についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by