I use the following code: cellfun(@(x) regexp(x, '@(.*)@', 'tokens'), array_of_strings) The idea is to replace all the strings in the array with only the substring between the @'s. It works, the only problem is that the 'tokens' option leaves me with cells inside cells, which is inconvenient. My questions are: 1. Is there an alternative way to do it without getting cells inside cells? 2. It is interesting for me to know if there is a function that converts "cell arrays with strings inside a cell array" into simply "strings in a cell array". Thanks
MATLAB: Converting cells with strings inside cells into strings inside cells
cellfunMATLABregexp
Related Question
- Parsing integers from directory list
- Cell array strings storage
- Cell array string formatting
- Cellfun not working for cells contain cells
- Accessing cell array data every 2 columns and concatenating them
- Converting complex cells into simple cell arrays
- How get values from ch
- Combine a cell array of cell arrays to a single cell array
Best Answer