dedbi reverse the words that is, ‘a’ will be replaced by ‘z’, ‘b’ will be replaced by ‘y’, ‘c’ will be replaced by ‘x’ and so on. dedbi will do the same for capital letter t
I just posted the solution, than I realised that I probably shouldn't solve your assignment. Anyways, here are a couple of tips for you:
You can use the function fliplr()
to invert the elements in a (row) vector. (hint: reverse the alphabet)
If you do: [~, index] = ismember('abcd','ac')
, than index
will be: index=[1 3]
(hint: the index of 'a' and c
in the alphabet are the same as for z
and 'y' in the reverse alphabet)