Converting Cell to Matrix to use Max Function
1 view (last 30 days)
Hello! I have a cell array of dimensions 1x1121, and I need the find the maximum value contained in this array. Since the max function only works on matrices, I was hoping to convert this cell array into a matrix. However, I keep getting an error on the dimensions when I use cell2mat. I have also tried using cell2mat(cellArray(1,:)) and as well initializing a matrix of the same dimensions to put the values (which are of type double into). Any input is greatly appreciated, thank you in advance.