Unrecognized function or variable 'thingSpeakPlot'.
Latest activity Reply by warda Nemouchi
on 10 Jun 2021
Hello, I'm new to thingspeak, i want to combine 4 fields in one chart, i have used the code below
readChannelID = 1408944; % YOUR CHANNEL NUMBER fieldID1 = 1; % YOUR FIELD NUMBER ie 1 to 8 fieldID2 = 3; % my case 1 Temp 2 Humid readAPIKey = '19EJIJW6YBM7VS7N'; [data1, time1] = thingSpeakRead(readChannelID, 'Field',fieldID1,'NumDays',1,'ReadKey', readAPIKey); [data2,time2] = thingSpeakRead(readChannelID, 'Field',fieldID2,'NumDays',1,'ReadKey', readAPIKey); thingSpeakPlotYY(time1, data1, time2, data2,... 'YGrid1','on','YLabel1','% H.R.',... 'YLabel2','*C','XLabel','Fecha y hora',... 'Title','Tempix y Humix ultimas 24 horas');
However, an error occurs saying that the function thingSpeakPlotYY is unrecognized
6 Comments
Time DescendingThat function (thingSpeakPlotYY) has been deprecated for some time. Can you let us know where you found the code? You can use yyaxis instead.
Sign in to participate