I would like to replace it with a corresponding 10x15 character matrix named stopcrit with elements of length 7:
'valstop' 'mingrad' 'perfmet'
The majority of the elements will be 'Valstop.'. Therefore, my plan was to initialize stopcrit with 'valstop' and then loop through stopcrit0 elementwise to replace 'valstop' in stopcrit where indicated.
Or is it better to make the changes to the cell and then convert it to a matrix?
What is the best way to do this? I would appreciate code.