MATLAB Answers

How can I introduce the break in the plot?

1 view (last 30 days)
Ramakrishna Narasimha Swamy
Answered: Image Analyst on 31 May 2021
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.

Answers (2)

VBBV
VBBV on 31 May 2021
%if
T1 = rand(1)*1.01*(85:95)
T2 = rand(1)*1.01*(75:85)
x1 = 1:11;
x2 = 13:23
plot(x1,T1);hold on;plot(x2,T2)
Extract the temperature vectors and plot them

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by