How to delete the first or the first two characters in a string?

287 views (last 30 days)
Philipp Mueller
Philipp Mueller on 15 May 2020
Edited: KSSV on 15 May 2020
Hello,
How can i delete the first two characters of this string? Thank you
string='W987';

Accepted Answer

KSSV
KSSV on 15 May 2020
Edited: KSSV on 15 May 2020
string(1:2) = [] % To remove the firt two elements

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!