Are there any functions that will return the index of the last string in a cell of strings?
1 view (last 30 days)
Show older comments
Daniel Zintsmaster
on 1 Apr 2020
Commented: Daniel Zintsmaster
on 1 Apr 2020
cell = {'a','a','b','b','c','c'}
function (cell, 'a') returns 2
function (cell, 'b') returns 4
function (cell, 'c') returns 6
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Data Types 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!