I would like to know the Matlab way of doing this:
I have an array of structs (Line) called lines.
Each Line looks like:
point1: [1 128] point2: [218 128] theta: -90 rho: -127
I need to subtract a value from all the point1(2) and point2(2) of all the lines in struct.
arrayfunmay be slower than aforloop