Im trying to convert a String into a Matrix. So like a=1 b=2... "Space"=28. Etc.
My question is how would I convert a string to a matrix?
aka.. abc=[1,2,3]
Tried a for loop, which does convert the string into numbers. Here is where I try to make it into a Matrix
String1=char(string)
String2=reshape(String1,[10,14]);
the error I get is "To RESHAPE the number of elements must not change" "String2=reshape(String1,[10,14]);