Solved


Convert a vector into a number
This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...

mer än 3 år ago

Solved


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

mer än 3 år ago

Solved


calculate RMS voltage
given peak to peak voltage, calculate rms voltage

mer än 3 år ago

Solved


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

mer än 3 år ago

Solved


Pointwise multiplication of vectors.
Pointwise multiplication of vectors x and y. Example x= [1 3 5 7 9 11 13 15 17 19] y=[ 1 4...

mer än 3 år ago

Solved


What is Sum Of all elements of Matrix
Given the matrix x, return the sum of all elements of matrix. Example: Input x = [ 1 2 0 0 0 0 6 9 3 3 ] ...

mer än 3 år ago

Solved


Vector Magnitude Calculator
'a' is a vector that starts at the origin and ends at (x, y). Find ||a||. Hint: It is as simple as "ABC".

mer än 3 år ago

Solved


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

mer än 3 år ago

Solved


Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

mer än 3 år ago

Solved


Find out value of sine given by degree.
Find out value of sine given by degree. If theta=30, it's value must be 0.5.

mer än 3 år ago

Solved


Square a Number
Given an input x, return y, which is equal to the square of x.

mer än 3 år ago

Solved


y equals x divided by 2
function y = x/2

mer än 3 år ago

Solved


metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

mer än 3 år ago

Problem


Red Cross

mer än 3 år ago | 0 | 23 solvers

Solved


Back to basics 15 - Benchmark
Covering some basic topics I haven't seen elsewhere on Cody. Return an array of the benchmark values for MATLAB.

mer än 3 år ago

Solved


Area of rhombus
Calculate the rhombus area

mer än 3 år ago

Solved


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

mer än 3 år ago

Solved


square number
Square a number

mer än 3 år ago

Solved


Rotate array 90 degrees
Rotate the given matrix by 90 degrees. Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

mer än 3 år ago

Solved


Area of a circle
Find the value for area of the circle if diameter is given

mer än 3 år ago

Solved


square root
Find the square root (y) of an input (x).

mer än 3 år 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...

mer än 3 år ago

Solved


Output a vector which is table of 9
Output a vector which is table of 9

mer än 3 år ago

Solved


Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

mer än 3 år ago

Solved


Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements. Example: x = [1 2 ...

mer än 3 år ago

Solved


Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

mer än 3 år ago

Solved


Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

mer än 3 år ago

Solved


find the roots of a quadratic equation
for e.g x = [ 2 -1 -3] y = [1.5 -1]

mer än 3 år ago

Solved


Times 3 problem
When you enter the number, it should return the number multiplied by 3

mer än 3 år ago

Solved


Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

mer än 3 år ago

Load more