해결됨


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

약 1년 전

해결됨


area of a sphere

약 1년 전

해결됨


Calculate volume of box
Calculate the volume of box,hiven its sides

약 1년 전

해결됨


Square root of a number
Write a code that will output the square root of x.

약 1년 전

해결됨


Find the max element of the array
Find the max element of the array

약 1년 전

해결됨


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

약 1년 전

해결됨


Simple Vector Addition
Take two incoming vectors and output the sum of the two vectors

약 1년 전

해결됨


Find 0 in array
Given array find where there 0 is.

약 1년 전

해결됨


Product of all elements in an array
Compute the product of all elements in an array.

약 1년 전

해결됨


Kinetic Energy
Given the mass m and velocity v of an object, determine its <http://en.wikipedia.org/wiki/Kinetic_energy kinetic energy>.

약 1년 전

해결됨


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년 전

해결됨


Find out sum of all elements of given Matrix
Find out sum of all elements of given Matrix A=[1 2 3;4 5 6 ;7 8 9]; Answer must be: 45 *If you like this problem, pl...

약 1년 전

해결됨


Determine the square root
Determine the square root of the value the user has entered, n.

약 1년 전

해결됨


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

약 1년 전

해결됨


length of a vector
Find twice the length of a given vector.

약 1년 전

해결됨


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

약 1년 전

해결됨


Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

약 1년 전

해결됨


Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

약 1년 전

해결됨


Find the distance traveled by a car given velocity and time.
A car is traveling at a constant velocity for a specific amount of time. The function should use the two inputs, velocity and ti...

약 1년 전

해결됨


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

약 1년 전

해결됨


Piecewise linear interpolation
Given an Mx2 vector and a row of M-1 integers, output a two column vector that linearly interpolates Y times between each succes...

약 1년 전

해결됨


Sum of Two Numbers
Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...

약 1년 전

해결됨


Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

약 1년 전

해결됨


Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...

약 1년 전

해결됨


Vector Element Multiplication
Take two incoming vectors, and output the element wise multiplication of the vectors.

약 1년 전

해결됨


Golden ratio
Calculate the golden ratio. Hint: phi^2 = phi + 1.

약 1년 전

해결됨


Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

약 1년 전

해결됨


Flipping a Matrix
Flipping matrix up and down. If a central row is exists, leave it, and flip remaining rows. Example Mat = magic(3) ...

약 1년 전

해결됨


Vector LCM
* Find Least Common Multiple of a given vector. * Need general solution as the test suite will be expanded. * Function Templa...

약 1년 전

해결됨


factorial
calculate x!

약 1년 전

더로드