Apps Matlab Analysis receiving NAN to "Calculate and display average humidity"
William Glass
on 2 May 2022
Latest activity Reply by Christopher Stapels
on 4 May 2022
Hello
I am trying to run the example code for "Calculate and display average humidity" using my channel data. I filled in the blanks:
- readChannelID
- humidityFieldID
- NumMinutes=720
The program returns display(avgHumidity,'Average Humidity') with "NAN" instead of the correct average. I have a free ThingSpeak account but have been following temperature & humidity every hour for the last 9 months. I would also like to store this average value on the same channel on a new field. Can anyone help me?
Thank You
10 Comments
Time DescendingIs your channel public? If so, can you share the ID and we can have a look. If not, can you share the data from the last 720 minutes in your channel and we can see it?
To show the data, you can use the REST API
If you put the thingSpeakRead command in a MATLAB analysis and leave the semicolon off the end, it will show you the output.
Sign in to participate