Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a MATLAB function called backthatstringup.m which takes any string (i.e. vector of char's ... a list of characters, surrounded by single quotes) and rewrites
Write a MATLAB function called backthatstringup.m which takes any string (i.e. vector of char's ... a list of characters, surrounded by single quotes) and rewrites it in reverse order. You must use either a for loop or a while loop in your code and you may not use the built-in MATLAB functions fliplr or flipud. The specifications for the function and some sample function calls are shown below. input parameter message a string to be reversed output parameter egassem the reversed message sample function calls backthatstringup ('This is a sentence.') produces '.ecnetnes a si sihT' backthatstringup('12345') produces '54321' backthatstringup ('racecar') produces 'racecar
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started