MATLAB: Finding the min value in a cell array

arraycellmatrixminimum

I have the following:
cell = {[5;2;4;3;6;9] [2;5;4;8;9;7] [8;4;5;6;7;9]}
I would like to find the minimum value in the first two columns of "cell".
basically I want to take the first two columns and compute the smallest value. i.e. 2
How should I do that?

Best Answer

You've not well defined what you mean by minimum (overall minimum or minimum of each column).
Overall minimum:
min(vertcat(c{[1 2]}))
minimum of each column:
cellfun(@min, c)
By the way, do not name your variable cell, this will prevent using from using the built-in cell function.