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.

Incorrect
0 Comments
Problem 189. Sum all integers from 1 to 2^n
Solution 655482 Submitted 1 minute ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 762. Matrix which contains the values of an other matrix A at the given locations.
Solution 655481 Submitted 14 minutes ago by Gareth Lee
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 762. Matrix which contains the values of an other matrix A at the given locations.
Solution 655480 Submitted 17 minutes ago by Gareth Lee
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
18Size
0 Comments
Problem 762. Matrix which contains the values of an other matrix A at the given locations.
Solution 655479 Submitted 18 minutes ago by Gareth Lee
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
18Size
0 Comments
Problem 762. Matrix which contains the values of an other matrix A at the given locations.
Solution 655478 Submitted 22 minutes ago by Gareth Lee
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
8Size
0 Comments
Problem 1225. Output any real number that is neither positive nor negative
Solution 655477 Submitted 30 minutes ago by Gareth Lee
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 589. Matrix indexing with two vectors of indices
Solution 655476 Submitted 33 minutes ago by Gareth Lee
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
40Size
0 Comments
Problem 2033. poll: would you like the regexp (?@cmd) functionality to be banned in Cody?
Solution 655475 Submitted 35 minutes ago by LY Cao
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 589. Matrix indexing with two vectors of indices
Solution 655474 Submitted 36 minutes ago by Gareth Lee
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
18Size
0 Comments
Problem 589. Matrix indexing with two vectors of indices
Solution 655473 Submitted 37 minutes ago by Gareth Lee
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
30Size
0 Comments
Problem 14. Find the numeric mean of the prime numbers in a matrix.
Solution 655472 Submitted 1 hour and 19 minutes ago by Di Lu
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 655471 Submitted 1 hour and 21 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
52Size
0 Comments
Problem 59. Pattern matching
Solution 655470 Submitted 1 hour and 28 minutes ago by Cyrus
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
39Size
0 Comments
Problem 17. Find all elements less than 0 or greater than 10 and replace them with NaN
Solution 655469 Submitted 1 hour and 58 minutes ago by Rohit Jain
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
14Size
0 Comments
Problem 5. Triangle Numbers
Solution 655468 Submitted 2 hours and 16 minutes ago by Rohit Jain
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
18Size
0 Comments
Problem 5. Triangle Numbers
Solution 655467 Submitted 2 hours and 16 minutes ago by Rohit Jain
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
38Size
0 Comments
Problem 7. Column Removal
Solution 655466 Submitted 2 hours and 27 minutes ago by Rohit Jain
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 7. Column Removal
Solution 655465 Submitted 2 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.
Incorrect
0 Comments
Problem 623. Rotate a Matrix
Solution 655464 Submitted 2 hours and 43 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 623. Rotate a Matrix
Solution 655463 Submitted 2 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 14. Find the numeric mean of the prime numbers in a matrix.
Solution 655461 Submitted 2 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.
10Size
0 Comments
Problem 149. Is my wife right?
Solution 655460 Submitted 2 hours and 59 minutes ago by Rohit Jain
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
18Size
0 Comments
Problem 6. Select every other element of a vector
Solution 655459 Submitted 3 hours and 2 minutes ago by Rohit Jain
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 6. Select every other element of a vector
Solution 655458 Submitted 3 hours and 3 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 6. Select every other element of a vector
Solution 655457 Submitted 3 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.
41Size
0 Comments
Problem 26. Determine if input is odd
Solution 655456 Submitted 3 hours and 14 minutes ago by Rohit Jain
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 655455 Submitted 3 hours and 14 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 655454 Submitted 3 hours and 18 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 26. Determine if input is odd
Solution 655453 Submitted 3 hours and 29 minutes ago by Nedim Mrvoljak
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 655452 Submitted 3 hours and 30 minutes ago by Nedim Mrvoljak
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
13Size
0 Comments
Problem 8. Add two numbers
Solution 655449 Submitted 3 hours and 36 minutes ago by Rohit Jain
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 3. Find the sum of all the numbers of the input vector
Solution 655448 Submitted 3 hours and 37 minutes ago by Rohit Jain
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
11Size
0 Comments
Problem 2. Make the vector [1 2 3 4 5 6 7 8 9 10]
Solution 655447 Submitted 3 hours and 38 minutes ago by Rohit Jain
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
11Size
0 Comments
Problem 2. Make the vector [1 2 3 4 5 6 7 8 9 10]
Solution 655446 Submitted 3 hours and 39 minutes ago by Rohit Jain
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 1. Times 2 - START HERE
Solution 655445 Submitted 3 hours and 41 minutes ago by Rohit Jain
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
13Size
0 Comments
Problem 8. Add two numbers
Solution 655444 Submitted 3 hours and 42 minutes ago by Nedim Mrvoljak
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
13Size
0 Comments
Problem 8. Add two numbers
Solution 655443 Submitted 3 hours and 43 minutes ago by Sathyanarayan Rao
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
11Size
0 Comments
Problem 2. Make the vector [1 2 3 4 5 6 7 8 9 10]
Solution 655442 Submitted 3 hours and 44 minutes ago by Nedim Mrvoljak
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
21Size
0 Comments
Problem 1659. Fahrenheit to Celsius using multiple statements
Solution 655441 Submitted 3 hours and 45 minutes ago by Sathyanarayan Rao
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 1658. Simple equation: Annual salary
Solution 655440 Submitted 3 hours and 47 minutes ago by Sathyanarayan Rao
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 1658. Simple equation: Annual salary
Solution 655439 Submitted 3 hours and 48 minutes ago by Sathyanarayan Rao
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
14Size
0 Comments
Problem 1658. Simple equation: Annual salary
Solution 655438 Submitted 3 hours and 49 minutes ago by Sathyanarayan Rao
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
49Size
0 Comments
Problem 12. Fibonacci sequence
Solution 655437 Submitted 3 hours and 59 minutes ago by Sathyanarayan Rao
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 12. Fibonacci sequence
Solution 655436 Submitted 4 hours and 1 minute ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
10Size
0 Comments
Problem 149. Is my wife right?
Solution 655435 Submitted 4 hours and 1 minute ago by Siddharth Singh
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
10Size
0 Comments
Problem 149. Is my wife right?
Solution 655434 Submitted 4 hours and 2 minutes ago by Abhishek Jain
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 12. Fibonacci sequence
Solution 655433 Submitted 4 hours and 2 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
10Size
0 Comments
Problem 149. Is my wife right?
Solution 655432 Submitted 4 hours and 13 minutes ago by Siddharth Singh
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 233. Reverse the vector
Solution 655431 Submitted 4 hours and 19 minutes ago by Siddharth Singh
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 233. Reverse the vector
Solution 655430 Submitted 4 hours and 21 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.