how to send thingspeak data to matlab

actually i want to send data of thingspeak to matlab.the sensors data i have already uploaded on thingspeak by the aurdino IDE and use of esp32 that data i just want to send to matlab.so how to do that?

3 Comments

j'ai le meme probleme je veux acquérir les données de mon capteur dht22 sur thingspeak par esp82 et tout va bien maintenent je veux presanter ses donnees sur matlab commant je peux le faire ???
oui moi ausssi j'ai le meme probleme ???
salut mohammed j'ai trouve la solution et je peux vous envoye par email

Sign in to comment.

Answers (1)

Vinod
Vinod on 19 Aug 2020
thingSpeakRead will get your data from ThingSpeak to MATLAB. Are you using MATLAB on your computer, MATLAB Online, or MATLAB Analysis and Visualization apps on ThingSpeak?

6 Comments

i will use matlab on my computer.And i wanted to ask that i have already send data of accelerometer sensor to thingspeak by using esp32 via AURINO IDE.Now i have to send data that was collected on thingspeak to matlab and dont know how to do that.
just want to send thingspeak's data which is orignially accelerometer data that is x graph y graph and z graph to matlab
Did you take a look at the thingSpeakRead function and the examples that were in the linked documentation?
yes i have looked.And i have used this commmand:
But now the problem that i am facing is that i have private channel of thingspeak so that i can only use the above command but this command is only capable of showing last value of x axis y axis and z axis that are:
data =
1983 1926 1529
but i want all the values that i have uploaded on thingspeak to be read in matlab.
along with the xaxis yaxis and zaxis label on them
Vinod
Vinod on 24 Aug 2020
Edited: Vinod on 24 Aug 2020
If you look at the documentation, the thingSpeakRead function has a 'NumPoints' argument that allows you to pull up to the last 8000 points in the channel, or a 'NumMinutes' argument that allows you to specify the previous 'x' minutes of data. Note that the function will return only at most the last 8000 points, as documented.
The command about which you are talking above can u show its syntax?How to find field ID From thingspeak channel?This is the code that is generated through.MATLAB Visualizations and i have created a a 2-D line plot .
But if i want to send the data from thingspeak to matlab? What should i do? How to use block thingspeak input?

Sign in to comment.

Communities

More Answers in the  ThingSpeak Community

Asked:

on 19 Aug 2020

Commented:

on 23 Feb 2022

Community Treasure Hunt

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

Start Hunting!