Hi,
I have below cell array, and want to get row indices of names ends with "_A". I am working in Matlab2016a.
Names:
{'HATY_A';'VANU_BA';'IKLA_A';'PAIK_A';'HANYT_BH';'HAYIO_HNA';'HAKIO_A'}
desired_output:
rowIdx=1347
I use below code: pattern='_A'
rowIdx=endsWith(Names,pattern) also tried rowIdx=contains(Names,pattern)but both doesn't work in 2016a. Kindly someone help how to get my desired output.
Best Answer