>> AA = string([ 0.5 2 3 2.5 1 1 0.6 1 2 2.4 2 3 0.2 2 3 2.3 3 2]) A = strrep(AA(:,[2 3 5 6]),'1','so-so'); A = strrep(A(:,1:4),'2','bad'); A = strrep(A(:,1:4),'3','good'); AA(:,[2 3 5 6])=A; A=AA
AA =
3×6 string array
"0.5" "2" "3" "2.5" "1" "1" "0.6" "1" "2" "2.4" "2" "3" "0.2" "2" "3" "2.3" "3" "2"
A =
3×6 string array
"0.5" "bad" "good" "2.5" "so-so" "so-so" "0.6" "so-so" "bad" "2.4" "bad" "good" "0.2" "bad" "good" "2.3" "good" "bad"
>>