MATLAB: How can i find the min of a multidimensional array

min value multidimensional arrays

i have the following code:
Family(1:4)= struct('relation',{'father','sister','brother','me'},'name',{'Rogelio Garcia Garcia','Leticia Garcia Aguilar','Rogelio Garcia Aguilar','Alejandro Garcia Aguilar'},'state',{'widow','married','married','single'},'age',{60,33,31,27});
A=struct2cell(Family);
array=reshape(A,[2,2,4])
and i wish to find the min value of the ages but i have several problems to find it because i got a error message when i use min(array) thanks

Best Answer

min([Family.age])