Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


Sort in descending order.

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


Laws of motion 6

fast 4 Jahre vor

Gelöst


Laws of motion 5

fast 4 Jahre vor

Gelöst


Laws of motion 3

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


Laws of motion 2

fast 4 Jahre vor

Gelöst


Laws of motion 1

fast 4 Jahre vor

Gelöst


Kinetic energy calculation

fast 4 Jahre vor

Gelöst


Potential energy calculation

fast 4 Jahre vor

Gelöst


Total energy

fast 4 Jahre vor

Gelöst


Energy Conversion 2

fast 4 Jahre vor

Gelöst


Energy Conversion 1

fast 4 Jahre vor

Gelöst


Velocity Conversion

fast 4 Jahre vor

Gelöst


Area Conversion 2

fast 4 Jahre vor

Gelöst


Area Conversion 1

fast 4 Jahre vor

Gelöst


Mass Conversion 2

fast 4 Jahre vor

Gelöst


Mass Conversion 1

fast 4 Jahre vor

Gelöst


Temperature Conversion 2

fast 4 Jahre vor

Gelöst


Temperature Conversion 3

fast 4 Jahre vor

Mehr laden