Capitalize 1st word of an character array
    3 views (last 30 days)
  
       Show older comments
    
    Nayeb Hasin
 on 16 Jun 2022
  
    
    
    
    
    Commented: Nayeb Hasin
 on 16 Jun 2022
            Using regexprep how do I convert this '99this' to this '99This'?
0 Comments
Accepted Answer
More Answers (1)
  Sean de Wolski
      
      
 on 16 Jun 2022
        
      Edited: Sean de Wolski
      
      
 on 16 Jun 2022
  
      s = "99this"
firstletter = letterBoundary("start")+lettersPattern(1)
replace(s, firstletter, upper(extract(s, firstletter)))
See Also
Categories
				Find more on Data Type Conversion in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


