I am trying to implement the Brooks-Iyengar algorithm for sensor fusion, and am trying to represent the following data structure in MATLAB.
A = {([1.5,3.2],4), ([0,2.7],5), ([0.8,2.8],4)}
I tried doing the following
B = {{[1.5,3.2],4},{[0,2.7],5}}
But then I don't know how to access each element, i.e. 1.5
, 3.2
and the 4
as well as the next set of values. I get one set of elements from B{1}
, but am not able to get the individual values after.
Any ideas or pointers to appropriate links would be helpful.