A résolu


Return median of a matrix
Compute median of a matrix of any dimension. Exclude the NaNs if any.

plus de 7 ans il y a

A résolu


Create Truth Table of Size according to input
Create a Truth Table Example: n = 3 output = [0 0 0; 0 0 1; 0 1 0; 0 1 1; 1 0 0; 1 0 1; 1 1 0; 1 1 1]

plus de 7 ans il y a

A résolu


Basics: counting digits of a number irrespective of the sign
publish the number of digits in any input integer example: -23---->2

plus de 7 ans il y a

A résolu


basic matrix operations: rotate and find sum of diagonal elements of the resultant matrix
For given input matrix a, rotate it by 90 degrees and find the sum of the diagonals. Example: Input: a = 1 ...

plus de 7 ans il y a

A résolu


Modified Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 3 6 9 11; 0 0 6 9 11; 0 0 0 9 11; 0 0 0...

plus de 7 ans il y a

A résolu


Make your own Test Suite (part 3)
In this task you need to imagine that you — _yes, YOU_ — have developed a problem on Cody for _me_ to solve, and now *you need t...

plus de 7 ans il y a

A résolu


Make your own Test Suite (part 2)
In this task you need to imagine that you — _yes, YOU_ — have developed a problem on Cody for _me_ to solve, and now *you need t...

plus de 7 ans il y a

A résolu


Make your own Test Suite (part 1)
In this task you need to imagine that you — _yes, YOU_ — have developed a problem on Cody for _me_ to solve, and now *you need t...

plus de 7 ans il y a

A résolu


Curve fitting (non-linear functions) & function handles
In this problem you are provided some raw data. You need to find a way of summarising the data with just a few parameters, so t...

plus de 7 ans il y a

A résolu


Computational power of Cody servers
It has been <https://en.wikipedia.org/wiki/Moore%27s_law#History predicted> that the performance of integrated circuits would _d...

plus de 7 ans il y a

A résolu


Repetition of matrices
*A is a bold matrix: [1 2 3; 4 5 6;7 8 9]* Given an integer 'n' , a matrix B exists such that has n copies of A in the row an...

plus de 7 ans il y a

A résolu


Volume of Spherical Shell
In three-dimensional space, a spherical shell can be constructed from two concentric spheres. Determine the volume of a spheric...

plus de 7 ans il y a

A résolu


Please check if calorie intake is less than 300 kcal.
I like eating some puddings and some chocolate cookies around 3 o'clock. However, I care about calorie intake. Please check whe...

plus de 7 ans il y a

A résolu


Cube root of max value in a vector
Find the cube root of the maximum value in a vector

plus de 7 ans il y a

A résolu


Hydrostatic Pressure
Given depth(height), in m, find the pressure under a body of water. Need to know the density of water(kg/m^3), and gravity(m/s^2...

plus de 7 ans il y a

A résolu


Second Diagonal
Transpose the matrix from it's second diagonal.

plus de 7 ans il y a

A résolu


find the logic,easy one
find the logic behind, example x=18 y=306 x=53 y=2756

plus de 7 ans il y a

A résolu


Transpose the Matrix
Transpose the given matrix, e.g. x=[a b;c d] transpose of x = [a c;b d]

plus de 7 ans il y a

A résolu


how many of the entries are positive?
Given x= sin(linspace(0,10*pi,100)), how many of the entries are positive?

plus de 7 ans il y a

A résolu


Rotate it!
Given a set of points, your aim is to rotate it by a given angle "theta" CCW (in 2d). The points are given in a matrix(x) of dim...

plus de 7 ans il y a

A résolu


Energy-Mass Equivalence
Given input enegy of the object, E, and constant c = 300,000,000, find the mass of the object.

plus de 7 ans il y a

A résolu


Delete the column with all 0 !
Delete the column with all 0 data in a matrix(x). e.g. input x = 1 0 0 4 5 0 7 0 ...

plus de 7 ans il y a

A résolu


Number Power
Raise a number to itself.

plus de 7 ans il y a

A résolu


'Absolute value'
Create a function called own_abs, which is the absolute number entered as the input return value.

plus de 7 ans il y a

A résolu


Reverse the Matrix
Given a Matrix A, reverse it. Such that, last element of A becomes 1st and vice versa. for example: Input = [1 2 3;4 5 ...

plus de 7 ans il y a

A résolu


Outlier number!
Find a number which has maximum distance from the mean value of vector A. Example: A=[5 2 1 5 6 2 5 9] y=9

plus de 7 ans il y a

A résolu


Determine whether the input is divisible by 3 as well as 5
If the input is divisible by 3 as well as 5 then the output should be 'true' otherwise 'false'

plus de 7 ans il y a

A résolu


World Cup 2018 Prediction!
Which team will be the winner?

plus de 7 ans il y a

A résolu


Divisible by 21
Write a function to determine if a number is divisible by 21.

plus de 7 ans il y a

A résolu


number of groups
In a classroom, *n* students work on a special project and the other students work in groups of five. If there are 18 students i...

plus de 7 ans il y a

Charger plus