-
1 Comment
Parvinderkaur Sodhi
on 24 Jun 2021
We can simply use 'append'
function y = stringfirstandlast(x)
y = append(x(1),x(length(x)))
end
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!