Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



concatenate string and string matrix
Posted:
Jul 29, 2014 7:34 PM


Hi: Does anyone encounter this problem? I simply cannot figure out how to do it. I have one string matrix.
A=['aa';'bb'];
I want to combine string '@(x)' with string matrix A to form the string.
B='@(x)['aa';'bb']';
then I can use str2func(B) to generate C=@(x)['aa';'bb'].
Does anyone know how to do it? I already try strcat or vertcat or horzcat. It doesn't work. The previous example is my simplified matrix. My real string matrix is pretty large.
thanks
shi



