MATLAB: Counting Matrcies so that the numbers are next to them.

counting rowsmatrix

So I have a matrix with a phrase that repeats as many times as the user input it to. The problem is that I would like to have a count next to it.Like this: 1. phrase 2. phrase 3. phrase 4. phrase and so on… So how would I go about this? Also, just to let you know, I'm using the repmat function right now.

Best Answer

  • Did you try strfind()?