I need to find the very first corresponding value of the payload when time is 0.0000.
Next,find the corresponding value of payload when time is 1.000.Likewise when time is 2.0000 and time is 3.0000. (pls note that payload column needs to convert to decimal values) [file is attached, herewith]
below is the code i used so far:
clc clear all fid=fopen('test.txt'); data=textscan(fid, '%*d%f%*s%*s%*s%*d%s', 40 ... , 'MultipleDelimsAsOne',true, 'HeaderLines',1); fclose(fid); S=hex2dec(data{:,7});
Any suggestions?
Best Answer