### Problem Groups The Community group contains problems contributed by Cody players. The Cody Challenge group contains problems created by the Cody administrator.

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

### Discover what MATLAB® can do for your career.

New to Cody? Let us show you how Cody works, or start solving problems.

# Community

Problems submitted by members of the MATLAB Central community.

3193Solvers

### Is my wife right?

Created by the cyclist

2124Solvers

### Pizza!

Created by the cyclist

1658Solvers

Created by Will

1317Solvers

### Check if sorted

Created by Amitava Biswas

1105Solvers

### Sum all integers from 1 to 2^n

Created by Dimitris Kaliakmanis

909Solvers

### How to find the position of an element in a vector without using the find function

Created by Chelsea

892Solvers

### The Hitchhiker's Guide to MATLAB

Created by the cyclist

862Solvers

### Reverse the vector

Created by Vishwanathan Iyer

722Solvers

### Distance walked 1D

Created by Amitava Biswas

648Solvers

### Too mean-spirited

Created by the cyclist

586Solvers

### Swap the input arguments

Created by Steve Eddins

544Solvers

### radius of a spherical planet

Created by Amitava Biswas

533Solvers

### Roll the Dice!

Created by @bmtran

468Solvers

### Bottles of beer

Created by Alan Chalker

459Solvers

### Is my wife right? Now with even more wrong husband

Created by the cyclist

445Solvers

### inner product of two vectors

Created by Amitava Biswas

434Solvers

### Sorted highest to lowest?

Created by Amitava Biswas

419Solvers

### Project Euler: Problem 1, Multiples of 3 and 5

Created by Doug Hull

403Solvers

### Arrange Vector in descending order

Created by Vishwanathan Iyer

390Solvers

### Make one big string out of two smaller strings

Created by Michelle

323Solvers

### Tell me the slope

Created by Amitava Biswas

318Solvers

### Factorize THIS, buddy

Created by the cyclist

315Solvers

### Find the sum of the elements in the "second" diagonal

Created by Roy Fahn

286Solvers

### surface of a spherical planet

Created by Amitava Biswas

285Solvers

### Solve the Sudoku Row

Created by @bmtran

275Solvers

### Right and wrong

Created by the cyclist

272Solvers

### Back to basics 6 - Column Vector

Created by Alan Chalker

267Solvers

### Given an unsigned integer x, find the largest y by rearranging the bits in x

Created by Amitava Biswas

263Solvers

Created by Sunu

257Solvers

### All capital?

Created by Amitava Biswas

251Solvers

### Program an exclusive OR operation with logical operators

Created by Tobias Otto

245Solvers

### Return the first and last character of a string

Created by @bmtran

243Solvers

### given 3 sides, find area of this triangle

Created by Amitava Biswas

229Solvers

### Omit columns averages from a matrix

Created by Roy Fahn

228Solvers

### Back to basics 8 - Matrix Diagonals

Created by Alan Chalker

219Solvers

### Back to basics 11 - Max Integer

Created by Alan Chalker

213Solvers

### Back to basics 22 - Rotate a matrix

Created by Alan Chalker

213Solvers

### Check if number exists in vector

Created by Nichlas

210Solvers

### First N Perfect Squares

Created by @bmtran

210Solvers

### Increment a number, given its digits

Created by the cyclist

203Solvers

### Love triangles

Created by the cyclist

202Solvers

### Getting the indices from a vector

Created by Doug Hull

197Solvers

### Simple equation: Annual salary

Created by matlab.zyante.com

194Solvers

### Get the length of a given vector

Created by Yudong Zhang

192Solvers

Created by Julio

185Solvers

### Remove DC

Created by Amitava Biswas

183Solvers

### Project Euler: Problem 6, Natural numbers, squares and sums.

Created by Doug Hull

183Solvers

### All your base are belong to us

Created by the cyclist

173Solvers

### Project Euler: Problem 10, Sum of Primes

Created by Doug Hull

171Solvers

Created by Julio