for K = 1 : 32 : length(datahex)
datasubset = datahex(K : K + 31);
... work with datasubset ...
end
Note here that it takes 2 hex digits to form one byte.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!