arrayfun(@(x) strsplit(x,' '),string(a),'UniformOutput',false)
string(a) - this makes the data easily process-able, converts to a string array.
@(x) strsplit(x,' ') - this is a function that splits each string into parts whenever a space(' ') is located(which works for your case)
arrayfun - applies the above function to each "row" in the string array.
3 Comments
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/391733-how-do-i-separate-date-and-time-of-a-raw-date#comment_551683
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/391733-how-do-i-separate-date-and-time-of-a-raw-date#comment_551683
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/391733-how-do-i-separate-date-and-time-of-a-raw-date#comment_551684
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/391733-how-do-i-separate-date-and-time-of-a-raw-date#comment_551684
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/391733-how-do-i-separate-date-and-time-of-a-raw-date#comment_551686
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/391733-how-do-i-separate-date-and-time-of-a-raw-date#comment_551686
Sign in to comment.