ans5_1.m
来自「MATLABR2006a基础教程」· M 代码 · 共 5 行
M
5 行
% find the times and places of the specified letter in the string
letter = 'a'; % The specified letter to be searched for
string = 'China'; % The specified tring to be searched
places = findstr(S,A); % The places of the letter
ntimes = length(places);% The times of the letter
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?