MATLAB: Are there any functions that will return the index of the last string in a cell of strings

cell arraysfind

cell = {'a','a','b','b','c','c'}
function (cell, 'a') returns 2
function (cell, 'b') returns 4
function (cell, 'c') returns 6

Best Answer

find(ismember(cell,'a'),1,'last');