Solved


Negative matrix
Change the sign of all elements in given matrix.

1 month ago

Solved


MPS to MPH
Given the speed in miles per second, find the speed in miles per hour.

1 month ago

Solved


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

1 month ago

Solved


Factorial !
Calculate the factorial of a non-negative integer without using the built in function *factorial*

1 month ago

Solved


Ohm's Law
Well its Ohm's law... So V = IR! I will give two of the three values, such as V and I or I and R and you have to return th...

1 month ago

Solved


Solve The Equation
The coefficients of a system of equations are given in two vectors, x1 and x2. Write a function to solve the equation and return...

1 month ago

Solved


Subtraction
Subtract a from b.

1 month ago

Solved


Product of Array
Given an array of numbers. Get the product of the array.

1 month ago

Solved


Basic commands - amount of inputs
Make a function, which will return amount of given inputs Example: amountinput(1,2,4,3,10) -> 5 , because we gave functio...

1 month ago

Solved


Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

1 month ago

Solved


only input
Return the output without writing any code into the function.

1 month ago

Solved


select the primes of a vector
Find the prime numbers in a vector

1 month ago

Solved


Signed Magnitude
For a given input vector, return the value that is furthest from zero. For example, if x = [1 2 -12] return -12.

1 month ago

Solved


Can you reshape the matrix?
Given a matrix A, is it possible to reshape it into another matrix with the given number of rows?

1 month ago

Solved


The answer to life the universe and everything
Write a function that gives the answer to life the universe and everything to every input except the input is 42. In this case t...

1 month ago

Solved


the number of inputs
Find the number of the inputs of the function. example y = theinputnumber(x,k); function called theinputnumber has 2 in...

1 month ago

Solved


Count photos
Given n people, everyone must have pictures taken with everyone, each photo includes only two persons, please count the total nu...

1 month ago

Solved


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

1 month ago

Solved


Switch matrix to a column vector
for e.g. x = [1 2 3 4] y = 1 3 2 4

1 month 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 ] ...

1 month ago

Solved


Increment up an input vector
Increment up an input vector by adding the indices to the vector values. For example, if an input vector is [3, 2, 6, 1, 6], the...

1 month ago

Solved


UICBioE240 problem 1.5
Find the size of the matrix, then multiply both values by 10 and make it into a column vector. So if A = [ 1 2 3; ...

1 month ago

Solved


Multiplication
Multiply a and b.

1 month ago

Solved


Return the Square of a Number
Write a function that takes a single numeric input x and returns its square. That is, given x, your function should output x^2....

1 month ago

Solved


Calculate the Number of Moles
The number of moles of a substance is calculated using the formula: Mass (g) = Moles / Molar Mass (g/mol)​ Write a function ca...

1 month ago

Solved


Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

1 month ago

Solved


06 - Matrix Equations 2
Define the vectors _aVec_ and _bVec_: <<http://samle.dk/STTBDP/Assignment1_2a.png>> and <<http://samle.dk/STTBDP/Assig...

1 month ago

Solved


Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.

1 month ago

Solved


Find the sum of n squares
What is the sum of the squares of the first n integers?

1 month ago

Solved


Times 5
Try out this test problem first. Given the variable x as your input, multiply it by five and put the result in y. Examples...

1 month ago

Load more