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/etc
field2 =
field3 =
field4 =
field5 =
if field4 == 1 && field5 == 1 && field1 > field4
disp('XXXXXXXXX')
end