I need to right a function that will take in a word and a letter. Then return a list of all the positions in word where the letter exists. I need to figure out how to do this without using any built in functions. So far I have :
function result = find_letter_positions(word,letter) indexes = []; for i = 1:length(word) if word(i) = = letter
after this I am unsure of where to go
Best Answer
This might help you: