📄 ans6_1.m
字号:
% 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -