How to separate variable values from stored matrix?

Use strmatch. See the bottom code snipped at