# MATLAB: Replace numeric char within a column

replace numeric char within a column

Hey,
I would like to replace numbers (-999) as char with a 0 for all -999 in a specific column.

• Hi,
it sounds as if you have a cell array of strings. In this case
allDatabySubj(strcmp(allDatabySubj, '-999)) = {0};
should do the trick.
Titus