I have a 1x280 structure in Matlab. In order for me to use the values, I changed it to struct2cell array.
An example of how one of the structures among the 280 looks is below :
Field Value Min Max
point1 [29,469] 29 469
point2 [42,469] 42 469
-------------------------------------------
After changing to a cell array using the below code:
showlines = struct(lines);
cellData = struct2cell(showlines);
cellData{1,1}(1)
= 29
However, if I use this :
cellData{1,1:280}(1);
There is an error
Error:: bad cell reference operation
I would need to keep all the x values of point1 in each of the 280 structures into an array so as to find out the maximum X value of point1 in them. Any idea how to do it?
Thank you very much in advance.