Erorr in MATLAB code

2 次查看(过去 30 天)
Fox
Fox 2023-5-3
评论: Fox 2023-5-4
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.

采纳的回答

Christopher Stapels
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?
  1 个评论
Fox
Fox 2023-5-4
Thanks! I try change field names to standart latin character, now all working fine!

请先登录,再进行评论。

更多回答(0 个)

社区

更多回答在  ThingSpeak Community

类别

Help CenterFile Exchange 中查找有关 Visualize Data 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by