Say I have a character matrix which I have created using vectors,
vector < vector > char_heights={ {1,1,0},{1,0,1} };
Now I