How can I parse the string to extract numbers into two matrices
Show older comments
Hello,
I have the following string that I need to parse in order to extract the numbers into two different arrays. The string is as follows:
T01D002T02D004T03D006T04D008T05D010T06D012T07D014T08D016T09D018T10D020T11D022T12D024T13D026T14D028T15D030T16D032T17D034T18D036T19D038T20D040T21D042T22D044T23D046T24D048T25D050T26D052T27D054T28D056T29D058T30D060
The T and D are the placeholders to indicate Time and Data value. I need to create two arrays as follows: Time=1 2 3 etc. Data=2 4 6 etc.
Any timely help is much appreciated.
Accepted Answer
More Answers (0)
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!