To test if a value in a cell array matches a value in matlab, one can use the ismember
function or a for loop along with string comparison. Here are examples of both approaches:
Using ismember
function:
main.m243 chars9 lines
Using for loop and string comparison:
main.m391 chars15 lines
gistlibby LogSnag