![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/16205719_1568226029898_DEF.jpg)
Naagy Omar
自 2019 起处于活动状态
Followers: 0 Following: 0
Feeds
提问
Hello. I have to write a function called occurrence that tests whether a character exists in a string. If it is present, display true and the position (index) of the character. If it is not present, return inf. it gives me an error in line 2. help?!?
function find_letter(L, string) n= 1:length(L); not_found = true; for k = 1:n if isequal(L(k).lett...
4 years 前 | 1 个回答 | 0