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: dividing string
Replies: 2   Last Post: Apr 8, 2011 4:17 PM

Advanced Search

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

Posts: 22
Registered: 2/16/11
dividing string
Posted: Apr 8, 2011 12:28 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

hi all,

i am little bit confuse with string splitting.
i am geeting the string like this 'C34D'
this string i am dividing like this
he='C34D'; %input string
a=strcat(he(1),he(2)); dividing first two char
b=strcat(he(3),he(4)); dividing second two char

it's working very fine.. but is there any other method to dividing string ..

thank you,

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.