Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: concatenate string and string matrix
Replies: 8   Last Post: Jul 30, 2014 3:52 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Xianfeng

Posts: 8
Registered: 4/6/10
concatenate string and string matrix
Posted: Jul 29, 2014 7:34 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.