I have a matrix that is (100*4) dimension. All the entries of first three columns are all numerical values and the last column (nbr4) needs to be a text.
for the first row; ( the values of each cell is selected manually).
CR7(1,1)=82;
CR7(1,2)=4;
CR7(1,3)=9.37;
CR7(1,4)={'AVG'};
When I tried to run it, I got an error: The following error occurred converting from cell to double: Error using double Conversion to double from cell is not possible." My objective here is to fill out all the elements of this matrix (100*4) using an " if, else" statement, so basically under certain condition, the elements of this matrix will be filled out from different matrices ( all numerical), expect the elements of the last column, they will always be either "AVG" or "Mrg". ( text/ string, not numerical.) Can anyone give some good advise please, I hope my explanation is a bit clear, I can share my code on here or via email, whichever is easier.
Thank you so much, Amine