if ismember(letter, word)
%do something
else
%do something else
end
Note the use of else and not elseif. There is no need to test for the false condition.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!