Gelöst


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

mehr als 2 Jahre vor

Gelöst


Raise each element to the power of its index in a matrix
In a matrix, A = [1,2;3,4] raise the power of each element like: 1^1+2^3+3^2+4^4 and add it all to produce the result 274

mehr als 2 Jahre vor

Gelöst


Find NaNs in the matrix
Return 1s wherever there is a NaN in the input matrix

mehr als 2 Jahre vor

Gelöst


Delete x value in given vector y.
Delete x value in given vector y. Exapmle x=5; y=[ 1 2 5 6 74 5 2 5] result=[1 2 6 74 2]

mehr als 2 Jahre vor

Gelöst


MATLAB Basics: Complex Numbers
For a given complex number, x, return the real and imaginary parts as a vector, y = [Real Imaginary].

mehr als 2 Jahre vor

Gelöst


Sum of numbers from 1-100
Sum up every whole number from 1 to 100. Include 1 and 100 in your calculation.

mehr als 2 Jahre vor

Gelöst


Shift elements of vector left
Shift elements of vector to the left. For ex. : Input_vec = [1 2 3 4 5] Output_vec = [2 3 4 5 1]

mehr als 2 Jahre vor

Gelöst


Even or Odd
Write a function which can tell us if the given value x is odd or even. So if x is even return true and if x is odd return false...

mehr als 2 Jahre vor

Gelöst


Find the minimal value in N*N Matrix
Suppose that we have N by N matrix, we try to find the minimal value in that matrix. examples: Input A=[1 2 3 5 6;52 58 56 45...

mehr als 2 Jahre vor

Gelöst


Determine whether the number is multiple of 3 or not
Let a=6 and as 6 = 2*3 which means 6 is multiple of 3; return true if a is multiple of 3,otherwise false.

mehr als 2 Jahre vor

Gelöst


reverse the order and combine a matrix

mehr als 2 Jahre vor

Gelöst


Geometrical meaning of determinant
Given two vectors x,y, in 2D or three vectors x,y,z in 3D space, compute the area (or volume) of the parallelogram they define. ...

mehr als 2 Jahre vor

Gelöst


Find the diagonal of the square of side L
You are given a square of side length L, find D the length of its diagonal.

mehr als 2 Jahre vor

Gelöst


Values in Array
How many values are in the array

mehr als 2 Jahre vor

Gelöst


Dots in a Circle
Return how many integer grid points there are inside a circle of radius _r_ centred at (0,0) (including points on the edge). ...

mehr als 2 Jahre vor

Gelöst


Volume of a Simplex
Return the volume of a <http://en.wikipedia.org/wiki/Simplex regular _n_-simplex> with a unit side length. Results are up to...

mehr als 2 Jahre vor

Gelöst


Forward Elimination for Gauss Elimination
Perform forward elimination for a given pivot column in the augmented matrix, Ab=[A,b]

mehr als 2 Jahre vor

Gelöst


Usage of varargout
This Challenge is to demonstrate usage of varargout. Output a cell array using varargout of magic squares of size 1 thru n. ...

mehr als 2 Jahre vor

Gelöst


Center of mass
Given a matrix M(m,n), where m is the number of vertices of the geometrical element and n is 2 or 3 (2D-plane figure or 3D-solid...

mehr als 2 Jahre vor

Gelöst


possible ways through matrix
This problem is inspired from problem 2405 <https://www.mathworks.com/matlabcentral/cody/problems/2405-the-number-of-ways>. Che...

mehr als 2 Jahre vor

Gelöst


A row vector, pick 1st number, skip 1,pick 3rd number, skip 2,pick,skip,etc then place all picked numbers in order in new vector
Having a row vector of number, pick the first number, place in new output vector as the first value, then skip one number, pick...

mehr als 2 Jahre vor

Gelöst


Compute the maximal product of any two numbers whose concatenation is n
Write a function that takes an input and computes the maximal product of numbers that concatenate to . For example, if , then t...

mehr als 2 Jahre vor

Gelöst


Find the nearest prime
Given a positive integer 'n', the task is to find a prime number greater than or equal to 'n'. Example 1 If given 'n' is ...

mehr als 2 Jahre vor

Gelöst


Annual Salary
What is the annual salary of Mr. Cody if he works 40 hours a week and gets $x per hour and a yearly bonus of $2000? (Let, 50 wee...

mehr als 2 Jahre vor

Gelöst


MATLAB Basics: Complex Conjugates
For a given complex number, x, return the complex conjugate, y.

mehr als 2 Jahre vor

Gelöst


Count the primes in Collatz sequences
Several Cody problems (21, 69, 42937, 44448, 44784, 52422) involve Collatz sequences. These start with a seed . If is odd, the ...

mehr als 2 Jahre vor

Gelöst


Circle : Square

mehr als 2 Jahre vor

Gelöst


Calculate the number of elements in a matrix.
Calculate the number of elements in a matrix.

mehr als 2 Jahre vor

Gelöst


lb to kilogram
convert lb to kilogram units, easy

mehr als 2 Jahre vor

Gelöst


Matrix to vector transformation
given a matrix, make in the output 1 column vector putting odd numbers in ascending order after that put the even numbers in des...

mehr als 2 Jahre vor

Mehr laden