Solved


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

4 years ago

Solved


Max of a Vector
Write a function to return the max of a vector

4 years ago

Solved


Sum of diagonals elements of a matrix
Given a matrix, return the sum of all the elements across the diagonals. E.g. A = [1 2 3; 4 5 6; 7 8 9;...

4 years ago

Solved


Draw 'Y'
Draw 'Y' in an x-by-x matrix (where x is odd and x >= 3) Examples: x = 3 y = [1 0 1 0 1 0 0 1 0] x = 5 y = [1...

4 years ago

Solved


Sort in descending order.

4 years ago

Solved


An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...

4 years ago

Solved


Given a vector x, return vector y with all negative elements from the vector x.
Given a vector x, return vector y with all negative elements from the vector x if x has negative elements. Otherwise return 0. ...

4 years ago

Solved


surrounded matrix
With a given matrix A (size m x n) create a matrix B (size m+2 x n+2) so that the matrix A is surrounded by ones: A = [1 2 ...

4 years ago

Solved


Back to basics 23 - Triangular matrix
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix, return a matrix with all elements above a...

4 years ago

Solved


Remove NaN ?
input -> matrix (n*m) with at least one element equal to NaN; output -> matrix(p*m), the same matrix where we deleted the enti...

4 years ago

Solved


Flip the main diagonal of a matrix
Given a n x n matrix, M, flip its main diagonal. Example: >> M=magic(5); >> flipDiagonal(M) 9 24 1 ...

4 years ago

Solved


Find max
Find the maximum value of a given vector or matrix.

4 years ago

Solved


Laws of motion 6

4 years ago

Solved


Laws of motion 5

4 years ago

Solved


Laws of motion 3

4 years ago

Solved


Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.

4 years ago

Solved


Laws of motion 2

4 years ago

Solved


Laws of motion 1

4 years ago

Solved


Kinetic energy calculation

4 years ago

Solved


Potential energy calculation

4 years ago

Solved


Total energy

4 years ago

Solved


Energy Conversion 2

4 years ago

Solved


Energy Conversion 1

4 years ago

Solved


Velocity Conversion

4 years ago

Solved


Area Conversion 2

4 years ago

Solved


Area Conversion 1

4 years ago

Solved


Mass Conversion 2

4 years ago

Solved


Mass Conversion 1

4 years ago

Solved


Temperature Conversion 2

4 years ago

Solved


Temperature Conversion 3

4 years ago

Load more