This is the string version of Problem 1035. Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a string like abbcccddddeeeee
So if n = 3, then return
And if n = 5, then return
Same as Problem 1035
It is what I have written in the summary of this problem. @+
I totally didn't think this would be accepted. Now I feel like a bad person. :P
I believe that TMW is going to rescore all CODY solutions using feval(@eval in the future : http://blogs.mathworks.com/community/2012/02/06/scoring-in-cody/#comment-13751
As Aurelien says, we've changed it so this will fail from now on. It may take a while to root out all the old answers though.
@Ned, it seems that the new trick to have a mini score now is to use str2func lol!
Yes, there is always one more trick. Hopefully we can keep the sickness from being an epidemic.
Count from 0 to N^M in base N.
We love vectorized solutions. Problem 1 : remove the row average.
Make a 1 hot vector
Reverse the elements of an array
Find all the zeros of sinus , cosinus and tangent in a given interval
Cody Computer Part 5 - Guess the Name of Cody Computer
Remove the two elements next to NaN value
Fill a zeros matrix
Angle between two vectors
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