[Solved] How to work with strings in a loop – MatLab [closed]


To work with elements in a cell array, use curly braces {} to retrieve the data stored at each cell index, as in the following loop:

for i = 1:74
    str = m{i};
    % do something with string
end

0

solved How to work with strings in a loop – MatLab [closed]