Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Cody Solutions

What is Size?

Size refers to the number of nodes in a parse tree. Generally speaking, you can think of size as code length.

20Size
0 Comments
Problem 2. Make the vector [1 2 3 4 5 6 7 8 9 10]
Solution 608413 Submitted 6 minutes ago by Greg Voorberg
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
21Size
0 Comments
Problem 2711. Assigning a sum
Solution 608404 Submitted 14 minutes ago by Shaurya Mahey
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
26Size
0 Comments
Problem 367. Specific Element Count
Solution 608399 Submitted 16 minutes ago by Nicolas Hagen
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
29Size
0 Comments
Problem 943. "mirror" matrix
Solution 608383 Submitted 21 minutes ago by Nicolas Hagen
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 2999. Billiards
Solution 608379 Submitted 32 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 3017. Baseball Pitch Question
Solution 608377 Submitted 34 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 27. Pangrams!
Solution 608373 Submitted 44 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
30Size
0 Comments
Problem 2033. poll: would you like the regexp (?@cmd) functionality to be banned in Cody?
Solution 608365 Submitted 1 hour and 19 minutes ago by Nicolas Hagen
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
26Size
0 Comments
Problem 37. Pascal's Triangle
Solution 608361 Submitted 1 hour and 28 minutes ago by Michel
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 134. Geometric series
Solution 608327 Submitted 2 hours and 19 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
20Size
0 Comments
Problem 1077. Count up then down
Solution 608325 Submitted 2 hours and 21 minutes ago by Nicolas Hagen
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
22Size
0 Comments
Problem 1077. Count up then down
Solution 608324 Submitted 2 hours and 21 minutes ago by Nicolas Hagen
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
30Size
0 Comments
Problem 1790. 01 - Scalar variables
Solution 608323 Submitted 2 hours and 25 minutes ago by Nicolas Hagen
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
20Size
0 Comments
Problem 762. Matrix which contains the values of an other matrix A at the given locations.
Solution 608321 Submitted 2 hours and 27 minutes ago by Nicolas Hagen
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
27Size
0 Comments
Problem 381. Angle between two vectors
Solution 608304 Submitted 2 hours and 47 minutes ago by Nicolas Hagen
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 381. Angle between two vectors
Solution 608303 Submitted 2 hours and 48 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 381. Angle between two vectors
Solution 608302 Submitted 2 hours and 48 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
23Size
0 Comments
Problem 1119. sum of non-primes
Solution 608298 Submitted 2 hours and 52 minutes ago by Nicolas Hagen
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 1119. sum of non-primes
Solution 608297 Submitted 2 hours and 55 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
26Size
0 Comments
Problem 109. Check if sorted
Solution 608284 Submitted 3 hours and 15 minutes ago by Zhao Dennis
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
22Size
0 Comments
Problem 1194. Replace multiples of 5 with NaN
Solution 608281 Submitted 3 hours and 21 minutes ago by Nicolas Hagen
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
25Size
0 Comments
Problem 26. Determine if input is odd
Solution 608269 Submitted 3 hours and 53 minutes ago by Gauti
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
29Size
0 Comments
Problem 26. Determine if input is odd
Solution 608268 Submitted 3 hours and 53 minutes ago by Gauti
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 26. Determine if input is odd
Solution 608264 Submitted 3 hours and 56 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 26. Determine if input is odd
Solution 608263 Submitted 3 hours and 58 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
21Size
0 Comments
Problem 33. Create times-tables
Solution 608258 Submitted 4 hours and 15 minutes ago by Riccardo
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
20Size
0 Comments
Problem 106. Weighted average
Solution 608250 Submitted 4 hours and 21 minutes ago by Daniel
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
30Size
0 Comments
Problem 12. Fibonacci sequence
Solution 608247 Submitted 4 hours and 31 minutes ago by Daniel
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
30Size
0 Comments
Problem 12. Fibonacci sequence
Solution 608246 Submitted 4 hours and 31 minutes ago by Daniel
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
30Size
0 Comments
Problem 12. Fibonacci sequence
Solution 608245 Submitted 4 hours and 31 minutes ago by Daniel
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
29Size
0 Comments
Problem 19. Swap the first and last columns
Solution 608241 Submitted 4 hours and 35 minutes ago by Daniel
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 19. Swap the first and last columns
Solution 608240 Submitted 4 hours and 35 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
21Size
0 Comments
Problem 33. Create times-tables
Solution 608239 Submitted 4 hours and 37 minutes ago by Daniel
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
21Size
0 Comments
Problem 33. Create times-tables
Solution 608238 Submitted 4 hours and 38 minutes ago by Daniel
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
21Size
0 Comments
Problem 33. Create times-tables
Solution 608237 Submitted 4 hours and 38 minutes ago by Daniel
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
27Size
0 Comments
Problem 33. Create times-tables
Solution 608232 Submitted 4 hours and 51 minutes ago by Riccardo
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
27Size
0 Comments
Problem 14. Find the numeric mean of the prime numbers in a matrix.
Solution 608231 Submitted 4 hours and 54 minutes ago by Riccardo
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 14. Find the numeric mean of the prime numbers in a matrix.
Solution 608230 Submitted 4 hours and 56 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
21Size
0 Comments
Problem 1663. Pizza value using expression with parentheses
Solution 608228 Submitted 5 hours and 3 minutes ago by Riccardo
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
21Size
0 Comments
Problem 1663. Pizza value using expression with parentheses
Solution 608227 Submitted 5 hours and 3 minutes ago by Riccardo
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
21Size
0 Comments
Problem 1663. Pizza value using expression with parentheses
Solution 608226 Submitted 5 hours and 3 minutes ago by Riccardo
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 14. Find the numeric mean of the prime numbers in a matrix.
Solution 608225 Submitted 5 hours and 5 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 752. Is X a Fibonacci Matrix?
Solution 608223 Submitted 5 hours and 11 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
22Size
0 Comments
Problem 1636. ZigZag matrix with reflected format
Solution 608217 Submitted 5 hours and 22 minutes ago by Jan Orwat
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
28Size
0 Comments
Problem 19. Swap the first and last columns
Solution 608214 Submitted 5 hours and 25 minutes ago by Riccardo
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 19. Swap the first and last columns
Solution 608213 Submitted 5 hours and 26 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
28Size
0 Comments
Problem 19. Swap the first and last columns
Solution 608212 Submitted 5 hours and 26 minutes ago by Riccardo
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 19. Swap the first and last columns
Solution 608211 Submitted 5 hours and 26 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 26. Determine if input is odd
Solution 608200 Submitted 5 hours and 45 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 26. Determine if input is odd
Solution 608199 Submitted 5 hours and 45 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.