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: String Array
Replies: 1   Last Post: Nov 28, 1996 5:30 PM

Advanced Search

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

Posts: 7
Registered: 12/7/04
String Array
Posted: Nov 28, 1996 10:13 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Dear All,

Could anybody tell me how I can define a string array
in MATLAB, in which each item of the array is a string?

I have tried the following:

A = ['abc','def'];

But MATLAB seems to pack the six alphabets together.

I would like A(1) = 'abc' and A(2) = 'def'

Thanks for your help!


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.