How can I split a cell array in which every cell has strings and numbers but the space made them split?

5 views (last 30 days)
forexample: cell 1 = reser 1 12 15 55.67 77.899

Accepted Answer

Walter Roberson
Walter Roberson on 15 Dec 2016
You can use strsplit() or you can use regexp() with the 'split' option.
  4 Comments
Mohammad Hasan  Aghdaie
Mohammad Hasan Aghdaie on 19 Dec 2016
Now, they are all characters. But we know that the first one is a string and the others are numbers. How can I send them into a matrix that because I want to plot RESERV 1 in 1928 based on the other numbers.

Sign in to comment.

More Answers (0)

Categories

Find more on Cell Arrays 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!