E.g.,
x = randi(100,10,10) % sample data
columns = [4,7]; % columns to check
minx = min(x(:,columns)) % minimum of the two columns
c{1} = min(minx) % assign smallest one to cell element
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!