Solved


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

3 mois ago

Solved


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

3 mois ago

Solved


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

3 mois ago

Solved


Matlab Basics - Create a row vector
Write a Matlab script to create a row vector of 10 consecutive numbers x = [1 2 3 4 5 6 7 8 9 10]

3 mois ago

Solved


Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

3 mois ago

Solved


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

3 mois ago

Solved


Linear system of equations
Solve the system of equations in three variables.

3 mois ago

Solved


Solve the set of simultaneous linear equations
Given this pair of simultaneous linear equations: 2x + 3y = 23 3x + 4y = 32 Find the solution set (x,y)

3 mois ago

Solved


radius of a spherical planet
You just measured its surface area, that is the input.

3 mois ago

Solved


Laws of motion 5

3 mois ago

Solved


Laws of motion 4

3 mois ago

Solved


Laws of motion 6

3 mois ago

Solved


Potential energy calculation

3 mois ago

Solved


Kinetic energy calculation

3 mois ago

Solved


Laws of motion 2

3 mois ago

Solved


Laws of motion 1

3 mois ago

Solved


Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...

3 mois ago

Solved


Reverse a matrix
Its simple. You have to reverse a given matrix.

3 mois ago

Solved


Find the minimum element of the matrix
Example: If x = [3 9; 5 2] then y = 2

3 mois ago

Solved


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

3 mois ago

Solved


Convert radians to degrees
Given input in radians, output to degrees

3 mois 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,...

3 mois ago

Solved


Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

3 mois ago

Solved


Back to Basics - Find no. of elements in a matrix?
Let A be a m*n matrix. Find the total no. of elements in A ? (Hint - formula based) A = [1 2 3;4 5 6]; output = 6

3 mois ago

Solved


Saving MATLAB session to a file
How to save MATLAB session to a file?

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

3 mois ago

Solved


Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

3 mois ago

Solved


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

3 mois ago

Solved


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

3 mois ago

Solved


find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

3 mois ago

Load more