MATLAB: Comparison of multiple thing speak fields with mat lab field 4MATLABThingSpeak Is it possible to set up Matlab to compare thing speak field values. Field 4 = 1 and Field 5 = 1 and Field 1 > 4 then delay 30 secounds Alert message " xxxxxxxxx" Best Answer you can set your fields to variables, and use logical evaluators under your personal parameters:field1 = %set this to equal the appropriate channel/value/etcfield2 =field3 =field4 =field5 =if field4 == 1 && field5 == 1 && field1 > field4 disp('XXXXXXXXX')end Related SolutionsMATLAB: Thingspeak, Delete channel with HTTP DELETE, webwrite Make the api_key a querry string parameter.url = ['https://api.thingspeak.com/channels/' channelID '.json?api_key=<userAPIKey>']options = weboptions('RequestMethod','delete');response = webwrite(url); MATLAB: Condition for structure class arrayfun(@(S) all(structfun(@length, S) < 5), A) Related QuestionError using thingSpeakWrite Expected a string scalar or character vector for the parameter name.Adding empty numerical fields in structure arrayConvert structure class to double class
Best Answer