Solved


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

mer än 3 år ago

Solved


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...

mer än 3 år ago

Solved


area of a sphere

mer än 3 år ago

Solved


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

mer än 3 år ago

Solved


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

mer än 3 år ago

Solved


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

mer än 3 år ago

Solved


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

mer än 3 år ago

Solved


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

mer än 3 år ago

Solved


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

mer än 3 år ago

Solved


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

mer än 3 år ago

Solved


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

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

mer än 3 år ago

Solved


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...

mer än 3 år ago

Solved


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

mer än 3 år ago

Solved


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

mer än 3 år ago

Solved


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

mer än 3 år ago

Solved


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

mer än 3 år ago

Solved


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]

mer än 3 år ago

Solved


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]

mer än 3 år ago

Solved


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...

mer än 3 år ago

Solved


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

mer än 3 år ago

Solved


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...

mer än 3 år ago

Solved


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 ...

mer än 3 år ago

Solved


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

mer än 3 år ago

Solved


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

mer än 3 år ago

Solved


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

mer än 3 år ago

Solved


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

mer än 3 år ago

Solved


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...

mer än 3 år ago

Solved


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

mer än 3 år ago

Solved


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

mer än 3 år ago

Load more