The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

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

Does anyone encounter this problem? I simply cannot figure out how to do it.
I have one string matrix.


I want to combine string '@(x)' with string matrix A to form the string.


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.



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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.