thingSpeakPlot vs time of day.

2 Ansichten (letzte 30 Tage)
Mark Clark
Mark Clark am 11 Feb. 2019
Kommentiert: Mark Clark am 29 Mär. 2019
Good Day
I have a question on thingSpeakPlot.
How do plot against time on the X axis.
Im currently using plot shown below. The problem is when there is a power failure there may be less than 250 data points in that day which then gives an error.
I would also like to include the current day which may only have a few data points.
Notice the time shift in the 3 day temperture comparison following power failure.
thingSpeakPlot((1:250),allData,'legend',{'Yesterday','DBY','3DaysAgo',}, ...
'xlabel','Time Measurement number','YLabel','Temperature C', ...
'Title','3-Day Temperature Comparison');

Antworten (1)

Vinod
Vinod am 26 Mär. 2019
Hi Mark,
Can you use plot instead of thingSpeakPlot? Does that resovle the problem?
-Vinod
  1 Kommentar
Mark Clark
Mark Clark am 29 Mär. 2019
Yes, I had to change to plot as thingSpeakPlot was retired.
Still trying to figure out how to plot against time on the X axis.

Melden Sie sich an, um zu kommentieren.

Communitys

Weitere Antworten in  ThingSpeak Community

Kategorien

Mehr zu ThingSpeak finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by