Given a ColorSpec string, either in short or long form, return the corresponding RGB triplet. If the input is not a valid color, return an empty vector.
str2rgb('red') returns [1 0 0]
str2rgb('k') returns [0 0 0]
str2rgb('pizza') returns 
When I see beautiful and efficient Ly Cao solutions, I have the feeling that Cody has found another master (after Alfonso).
Thank you. I'm flattered. I still have a lot to learn.
Remove the vowels
Find the peak 3n+1 sequence value
Back to basics 23 - Triangular matrix
Count number of words in string
Number of occurrences of letter in a text
Triangular matrices in 3D array
Determine the number of maximal cliques in an undirected graph
Minimum of each diagonal
The Python Challenge, Level 1: Decode strings
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office