Erorr in MATLAB code
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Fox
am 3 Mai 2023
Kommentiert: Fox
am 4 Mai 2023
This code working fine.
readChannelID = [1788078];
fieldID1 = [1];
readAPIKey = '';
[data, time] = thingSpeakRead(readChannelID, 'Field', fieldID1, 'NumPoints', 30, 'ReadKey', readAPIKey);
plot(time, data);
But this code, have error : "Unrecognized table variable name 'x1'."
readChannelID = [1788078];
fieldID1 = [2];
readAPIKey = '';
[data, time] = thingSpeakRead(readChannelID, 'Field', fieldID1, 'NumPoints', 30, 'ReadKey', readAPIKey);
plot(time, data);
What i do wrong? Thanks.
0 Kommentare
Akzeptierte Antwort
Christopher Stapels
am 4 Mai 2023
I think it is related to the special characters in the field names. Thank you for reporting this, we will look into it further. In the meantime, can you change your field names to have all standard latin characters and let us know if that fixes the issue?
Weitere Antworten (0)
Communitys
Weitere Antworten in ThingSpeak Community
Siehe auch
Kategorien
Mehr zu Visualize Data 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!