MATLAB: How do i break a string down into cell arrays containing a string cell arraysstring I have a string separated by commas as below: 'Apples, Bananas, Dogs, Cats' How do i break it down to become a 4×1 cell array containing {Apples; Bananas; Dogs; Cats} Thanks in advance! Best Answer S = 'Apples, Bananas, Dogs, Cats'C = strsplit(S, ',') Related SolutionsMATLAB: Concatenate cell array into one string x = {'a','b',5,[]}x = cellfun(@num2str,x,'UniformOutput',false)sprintf('%s ',x{:}) MATLAB: Combine a cell array of cell arrays to a single cell array NewCellArray = vertcat( ExistingCellArray{:} ); Related QuestionBinary string to character stringHow to compare stringHow to convert a column of cells into stringReplacing Occurrences of String
Best Answer