MATLAB Community

MATLAB, community & more

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Use Cody to Learn About New MATLAB Features 5

Posted by Ned Gulley,

If you’re a Cody player, you’re familiar with the What Now? problem. That is, you’ve got a few minutes to play around with Cody, but you’re not sure what to tackle next. We’ll always offer you the default display: problems you haven’t solved sorted by which ones have the most solvers. It’s a pretty good place to start, but even so, you’re only seeing a few dozen of the thousands of available problems. And they’re not thematically connected in any way. When the problems you see on that list aren’t appetizing, what can you do?

That’s why we’re building more Problem Groups. In November I wrote about how Grant Cook III has been helping with challenge creation. Today I want to introduce another special challenge: the R2016b Feature Challenge. This particular challenge is interesting because it’s made up of problems that lend themselves to solutions with new features, features that were introduced in our R2016b release. So, for example, there are some problems that involve strings and some that involve timetables.

You’re always welcome to solve the problems however you like. You don’t have to apply the new features. But I guarantee there’s no better way to learn the value of new features than writing code to solve a real problem. And although I’m biased, I think there’s no more fun and motivating way to practice coding than Cody. Spend a few minutes with these problems and you’ll come away with hands-on experience of the value of these new features. That’s better than you’ll do scanning through release notes.

So here it is: the R2016b Feature Challenge.

Here’s a fun footnote to this challenge. We added it a few weeks ago, and we were pleased to see champion solver Peng Liu add a few of his own! So this challenge is a combined MathWorks-community effort. Thanks Peng! Why not start with his problem 43663: Combine the first and last names.

And finally, I want to point out one more way that you can learn about new problems to solve. You may have even noticed it already. We added a list of Suggested Problems to the page you see after you solve a problem. It sits on the right side of the page as shown here.


So there you have it. Two new ways to find interesting problems in Cody: a new features challenge and suggested problems List after every new solution. Now you know what to try next.

Oh, right. Did I forget  to mention that you get a nice badge for completing the challenge? As of this writing, only four people have received it. Your turn!


Comments are closed.

5 CommentsOldest to Newest

the cyclist replied on : 1 of 5

Cool beans. Ned, I don’t if this was intentional, but the link to Peng’s problem actually goes to your solution (which I think might be confusing for noobs).

Abdullah Caliskan replied on : 3 of 5

Hello Ned , I think something is wrong with cody player lists, I was 20th 15 or 20 days ago but now I’m 23th my score is erased I dont understand why

Ned Gulley replied on : 4 of 5

Hi Abdullah: Thanks for the note. Point totals for Cody are calculated instantaneously based on problems solved, created, and so on. There are a few scenarios where your point total can actually go down. One is when you get points for solving a problem that is later removed. When a problem is removed, all points that anyone got for that problem also vanish. We’ve had a significant inflow of weak problems lately. We remove these problems for the good of the overall community. The downside is that, if you solved such a problem and saw your score go up, you see it go back down again.

I’m not 100% sure that this is the case with your score, but I suspect it is. I hope you’ll understand that in general the whole group is better off when we remove weak problems (“What is 1+1?”, “What is 1+2?” and so on).