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: remove comma
Replies: 4   Last Post: Feb 22, 2013 5:45 PM

Advanced Search

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

Posts: 64
Registered: 4/29/09
remove comma
Posted: Feb 22, 2013 12:30 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello,

i have this cell array of 5 x 3:

tr =

'' '' 'level'
' Distance' ' VideoTime' ' '
'0,68,' '0,125,' 'X-->,'
',' ',' 'Y-->,'
'0,68,' '0,249674479166667,' 'X-->,'

and i would like to remove the comma that is located at the end of the numbers (e.g. 0,125,) and the characrters (e.g. X-->,).

I was thinking of doing it like this:
tr(strcmp(tr(3,2), tr))={'0,125'}

but i want to automate the {'0,125'} part into something like [tr(3,2) - comma]

thanks in advance!

best regards,
paul


Date Subject Author
2/22/13
Read remove comma
Paul
2/22/13
Read Re: remove comma
dpb
2/22/13
Read Re: remove comma
Paul
2/22/13
Read Re: remove comma
dpb
2/22/13
Read Re: remove comma
Paul

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.