I have two 1-by-n matrices A and B. A is full of strings 'test' 'test2' 'test3; and so on and B has numbers 123, 4567, 89 and so on.
How do I interweave these two to get output like
test 123
test2 4567
test3 89
as a string?
My current issue is that strings have variable lengths and so [A; B] leads to problems with mismatched dimensions.
test,test2stored as cells? And how about the numbers? You can't have strings and numbers in a regular array in MATLAB. cells are your best bet...test#strings are of variable length, then how are you starring them inAcurrently? EitherAis not a matrix and is a cell array or the strings are already padded with spaces (or some other black character). And what isclass(B)?charordouble?