A résolu


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

presque 4 ans il y a

A résolu


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

presque 4 ans il y a

A résolu


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;...

presque 4 ans il y a

A résolu


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...

presque 4 ans il y a

A résolu


Sort in descending order.

presque 4 ans il y a

A résolu


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

presque 4 ans il y a

A résolu


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. ...

presque 4 ans il y a

A résolu


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 ...

presque 4 ans il y a

A résolu


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...

presque 4 ans il y a

A résolu


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...

presque 4 ans il y a

A résolu


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 ...

presque 4 ans il y a

A résolu


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

presque 4 ans il y a

A résolu


Laws of motion 6

presque 4 ans il y a

A résolu


Laws of motion 5

presque 4 ans il y a

A résolu


Laws of motion 3

presque 4 ans il y a

A résolu


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

presque 4 ans il y a

A résolu


Laws of motion 2

presque 4 ans il y a

A résolu


Laws of motion 1

presque 4 ans il y a

A résolu


Kinetic energy calculation

presque 4 ans il y a

A résolu


Potential energy calculation

presque 4 ans il y a

A résolu


Total energy

presque 4 ans il y a

A résolu


Energy Conversion 2

presque 4 ans il y a

A résolu


Energy Conversion 1

presque 4 ans il y a

A résolu


Velocity Conversion

presque 4 ans il y a

A résolu


Area Conversion 2

presque 4 ans il y a

A résolu


Area Conversion 1

presque 4 ans il y a

A résolu


Mass Conversion 2

presque 4 ans il y a

A résolu


Mass Conversion 1

presque 4 ans il y a

A résolu


Temperature Conversion 2

presque 4 ans il y a

A résolu


Temperature Conversion 3

presque 4 ans il y a

Charger plus