Any way to subset data from a single Channel (Eg. using thingspeakread) in a MATLAB Visualisation?
1 次查看(过去 30 天)
显示 更早的评论
Any pointers would be appreciated - I've been looking for a way to do this for hours now.
I have a single channel receiving data from multiple IOT devices including the device name (this is working just fine).
I'd like to plot a value (eg Temperature) over time by device on a single chart.
The bit I can't seem to do is find a way to retrieve data "Where DeviceID = xyz"
Any ideas please??
0 个评论
回答(1 个)
Cris LaPierre
2020-12-29
If you have all the data in a single matrix, then the plot function will treat each column as a separate series. Does this get you what you want?
4 个评论
Cris LaPierre
2020-12-29
thinkSpeakRead returns the data as an array, table or timetable. From there, you can use normal indexing to select what to plot.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Process Data 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!