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 106. Weighted average
Solution 695871 Submitted 1 minute ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
16Size
0 Comments
Problem 10. Determine whether a vector is monotonically increasing
Solution 695870 Submitted 4 minutes ago by Zhuo Li
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 33. Create times-tables
Solution 695869 Submitted 5 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 12. Fibonacci sequence
Solution 695868 Submitted 11 minutes ago by MBledsoe
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 32. Most nonzero elements in row
Solution 695867 Submitted 16 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
37Size
0 Comments
Problem 10. Determine whether a vector is monotonically increasing
Solution 695866 Submitted 20 minutes ago by MBledsoe
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
38Size
0 Comments
Problem 19. Swap the first and last columns
Solution 695865 Submitted 28 minutes ago by MBledsoe
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 304. Bottles of beer
Solution 695864 Submitted 1 hour and 19 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 304. Bottles of beer
Solution 695863 Submitted 1 hour and 20 minutes ago
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 695862 Submitted 2 hours and 49 minutes ago by Jonathan Scott
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 8. Add two numbers
Solution 695861 Submitted 2 hours and 50 minutes 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 3. Find the sum of all the numbers of the input vector
Solution 695860 Submitted 2 hours and 51 minutes ago by Jonathan Scott
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
13Size
0 Comments
Problem 2. Make the vector [1 2 3 4 5 6 7 8 9 10]
Solution 695859 Submitted 2 hours and 53 minutes ago by Jonathan Scott
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 695858 Submitted 2 hours and 54 minutes ago by Jonathan Scott
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
397Size
0 Comments
Problem 42397. Megan's walk
Solution 695857 Submitted 3 hours and 11 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.
16Size
0 Comments
Problem 14. Find the numeric mean of the prime numbers in a matrix.
Solution 695856 Submitted 3 hours and 55 minutes ago by Hyo
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
28Size
0 Comments
Problem 17. Find all elements less than 0 or greater than 10 and replace them with NaN
Solution 695855 Submitted 3 hours and 59 minutes ago by Zhuo Li
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 695854 Submitted 4 hours and 13 minutes ago by Zhuo Li
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
10Size
0 Comments
Problem 2874. Cumulative product of a vector
Solution 695853 Submitted 4 hours and 16 minutes ago by Brian
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 304. Bottles of beer
Solution 695852 Submitted 4 hours and 22 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 304. Bottles of beer
Solution 695851 Submitted 4 hours and 22 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 304. Bottles of beer
Solution 695850 Submitted 4 hours and 23 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
481Size
0 Comments
Problem 42397. Megan's walk
Solution 695849 Submitted 4 hours and 24 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.
Incorrect
0 Comments
Problem 262. Swap the input arguments
Solution 695848 Submitted 4 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.
14Size
0 Comments
Problem 459. Sum of diagonal of a square matrix
Solution 695847 Submitted 4 hours and 28 minutes ago by Nicholas Hortance
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 33. Create times-tables
Solution 695846 Submitted 4 hours and 29 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
32Size
0 Comments
Problem 19. Swap the first and last columns
Solution 695845 Submitted 4 hours and 30 minutes ago by Aaron T. Becker
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
574Size
0 Comments
Problem 42397. Megan's walk
Solution 695844 Submitted 4 hours and 31 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.
635Size
0 Comments
Problem 42397. Megan's walk
Solution 695843 Submitted 4 hours and 38 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.
13Size
0 Comments
Problem 42443. Is the light on?
Solution 695842 Submitted 5 hours and 36 minutes ago by Antoine
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 42443. Is the light on?
Solution 695841 Submitted 5 hours and 36 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 25. Remove any row in which a NaN appears
Solution 695840 Submitted 5 hours and 53 minutes ago by Hyo
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
23Size
0 Comments
Problem 30. Sort a list of complex numbers based on far they are from the origin.
Solution 695839 Submitted 5 hours and 54 minutes ago by Matt Gray
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 30. Sort a list of complex numbers based on far they are from the origin.
Solution 695838 Submitted 5 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.
46Size
0 Comments
Problem 9. Who Has the Most Change?
Solution 695837 Submitted 5 hours and 57 minutes ago by Matt Gray
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 9. Who Has the Most Change?
Solution 695836 Submitted 5 hours and 59 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 9. Who Has the Most Change?
Solution 695835 Submitted 5 hours and 59 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
39Size
0 Comments
Problem 11. Back and Forth Rows
Solution 695834 Submitted 6 hours and 3 minutes ago by Matt Gray
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 11. Back and Forth Rows
Solution 695833 Submitted 6 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 25. Remove any row in which a NaN appears
Solution 695832 Submitted 6 hours and 12 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
18Size
0 Comments
Problem 2714. Write an expression
Solution 695831 Submitted 6 hours and 14 minutes ago by Cory Johnson
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 695830 Submitted 6 hours and 16 minutes ago by Cory Johnson
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
29Size
0 Comments
Problem 23. Finding Perfect Squares
Solution 695829 Submitted 6 hours and 17 minutes ago by Hyo
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
15Size
0 Comments
Problem 2713. Circle area using pi
Solution 695828 Submitted 6 hours and 18 minutes ago by Cory Johnson
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
17Size
0 Comments
Problem 2712. Fahrenheit to Celsius using multiple statements
Solution 695827 Submitted 6 hours and 24 minutes ago by Cory Johnson
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
13Size
0 Comments
Problem 2711. Assigning a sum
Solution 695826 Submitted 6 hours and 25 minutes ago by Cory Johnson
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
18Size
0 Comments
Problem 2708. Simple equation: Annual salary
Solution 695825 Submitted 6 hours and 27 minutes ago by Cory Johnson
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 2705. Plus x: A first program
Solution 695824 Submitted 6 hours and 28 minutes ago by Cory Johnson
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
784Size
0 Comments
Problem 42397. Megan's walk
Solution 695823 Submitted 6 hours and 39 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.
15Size
0 Comments
Problem 1661. Circle area using pi
Solution 695822 Submitted 6 hours and 45 minutes ago by Matt Gray
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.