Question: Confuse the reader Write a function called ReverseLetters that takes an input phrase consisting of a single word and reverses the sequence of letters by

Confuse the reader Write a function called ReverseLetters that takes an input phrase consisting of a single word and reverses the sequence of letters by moving the second letter to the second to last position. The input phrase could be a character vector of any length. Restrictions: The function may not use loops. Ex: >sout- ReverseLetters('Elephant) sout Enahpelt' >sout ReverseLetters('dog' sout = dog >sout- ReverseLetters('I') sout = Your Function C Reset MATLAB Documentation 11 function sout= ReverseLetters(sin) % Your code goes here % 4 5 end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
