www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/IgnoreCaseWhenCountingPatternsInStringExample.m
%% Ignore Case When Counting Patterns in String % Count the number of occurrences of the letter |E| in a string array that contains names, % ignoring case. str = string({'Edgar Allan Poe';'Louisa May Alcott'}) %% A = count(str,'E','IgnoreCase',true)