Problem 649. Return the first and last characters of a character array
58.89% Correct | 41.11% Incorrect
Last Solution submitted on Jun 01, 2023
Show 1 older comment
Rik on 19 Jan 2021
There is a difference between string and char array since R2016b. Before that they could be used interchangeably, but now that is no longer true (although I believe some doc pages are still not careful about this).
goc3 on 20 Jan 2021
The title and description have been updated, along with a few new test cases.
Bryce Lewis on 5 May 2021
Wow this actually is such a great question
ML on 28 Jan 2023
Solution CommentsShow comments
Problem Recent Solvers7861
Matrix indexing with two vectors of indices
Arrange vector in ascending order
More from this Author56
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!