Cody
Solution 1242400
Works also when input matrix m contains non-integers (NaN, Inf, non-integer rational numbers, irrational numbers).
Solution 1242386
Works because in each test matrix there's at least one odd value and one even value.
Pascal's Triangle
2982 Solvers
Back to basics 1 - Saving
495 Solvers
middleAsColumn: Return all but first and last element as a column vector
390 Solvers
Count up then down
299 Solvers
square number
324 Solvers
Vector of numbers divisible by 3
127 Solvers
Can I make a right triangle ?
53 Solvers
Create matrix with Gray code
29 Solvers
Return area of square
5086 Solvers
Make a vector of prime numbers
196 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office