split columns with separate elements

2 Ansichten (letzte 30 Tage)
Dion Theunissen
Dion Theunissen am 10 Aug. 2022
Kommentiert: dpb am 10 Aug. 2022
I have a column with lastnames and insertions. How can i split those? Cause not all the lastnames have the same number of elements.
a = bookings.child_firstname
b = split(a,' ')
Now I have the following error:
Error using split
Element 8 of the text contains 1 matches while the previous elements
have 0. All elements must contain the same number of matches.
  4 Kommentare
dpb am 10 Aug. 2022
One could also investigate the new(ish) pattern object/function that has "regexp for dummies" kind of functionality...

Melden Sie sich an, um zu kommentieren.

Antworten (0)


Find more on Characters and Strings 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!

Translated by