This solution is outdated. To rescore this solution, sign in.
-
2 Comments
Raymond MacNeil
on 18 Nov 2019
Well, I guess my understanding that string is defined using (" " , i.e. double quotations) is incorrect. I thought class string was formally distinguished from char (defined using ' ', i.e. single quotes). I should have looked at the test-suite.
Mario Malic
on 13 Mar 2020
Yes, the title should be "Return the first and last character of a char array"
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!