MATLAB: Replacing the values

matrix

I have a matrix of 100×62 ,the min and maximum values are
,0.2 and .9 respectively ,now i want all these values to be replaced by "DBLCL",PLEASE HELP

Best Answer

If DBLCL is a variable that has a number in it, you can do something like this:
m = rand(11,10); % Sample data.
% Find indexes matching the replacement criteria.
indexes = m > 0.2 & m < 0.9;
% Do the replacement.
m(indexes) = 99 % Or whatever other number you want.