MATLAB: Left characters of a string

strings

if I have a name 'Microsoft', how can i get the first 6 characters 'Micros'?

Best Answer

name = 'Microsoft'
out = name(1:6)