Question: *** IN MATLAB*** ) Write a function to display the middle character of a string. Note: a) If the length of the string is odd
*** IN MATLAB***
) Write a function to display the middle character of a string.
Note: a) If the length of the string is odd there will be two middle characters.
b) If the length of the string is even there will be one middle character.
Test Data:
Input a string: 350
Expected Output : The middle character in the string: 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
