MATLAB: Finding nth elements in multiple arrays

cell arrayselementsplot

I have multiple cell arrays: [93×2 double] [216×2 double] [128×2 double][121×2 double] [ 90×2 double] …so on. These correspond to XY plots,
plot(a{i}(:,1),a{i}(:,2))
opens a plot which looks as fig attached. I want to get the Y values at 1/4th, 1/2 and 3/4th of X for all cells. How can I go about doing this?
Thanks

Best Answer

Presuming Y is in the second column and that you want the 1/4 by position instead of by range:
cellfun( @(C) C(round([end/4, end/2, 3*end/4]), 2), YourCell, 'Uniform', 0)