Solved


How many digits are there?
Input(s) - any string Output(n) - number of digits within string s

3 years ago

Solved


Make a vector of prime numbers
Input(n) - length of vector with prime numbers Output(v) - vector of prime numbers Example: * n=1; v=2 * n=3; v=[2 3 5...

3 years ago

Solved


calculate PI without using pi function
There are many methods to get the pi(Ratio of circumference to diameter). You should get pi without using the pi function in M...

3 years ago

Solved


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

3 years ago

Solved


Roots of a quadratic equation.
Calculate the roots of a quadratic equation, given coefficients a, b, and c, for the equation a*x^2 + b*x + c = 0.

3 years ago

Solved


Determine the roots of a cubic equation
Given the coefficients a, b, c, and d of a cubic equation, a*x^3 + b*x^2 + c*x + d = 0, determine its roots.

3 years ago

Solved


Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

3 years ago

Solved


Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

3 years ago

Solved


Create a constant offset.
Add a constant offset to an array. Example a = [1 3 5 9] offset = 2 y = [3 5 7 11]

3 years ago

Solved


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

3 years ago

Solved


kmph to mph converter
Convert the speed in miles/hour to km/hour.

3 years 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 years ago

Solved


If you have matrix A, create matrix B using matrix A as an "element"
A = [1 2 3 4; 5 6 7 8] B = [1 2 3 4 1 2 3 4; 5 6 ...

3 years ago

Solved


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

3 years ago

Solved


imaginary results
Return the value of the imaginary number i to the power of input argument n.

3 years ago

Solved


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

3 years ago

Solved


Calculate the base-10 logarithm of a number
Calculate the logarithm of number x

3 years ago

Solved


Determine if a row vector has NaN
Determine if a row vector x has NaN

3 years ago

Solved


Volume of Cylinder
Compute the Circumference of a Cylinder given it's radius and height.Here x is the radius and y is the height

3 years ago

Solved


Create a square matrix of zeros of even order
Create a square matrix of zeros of even order

3 years ago

Solved


Box
Give the volume of a box, x is equal to the body diagonal.

3 years ago

Solved


Find square of given number
Find Square of any number

3 years ago

Solved


easy problem
Find the last element of the array

3 years ago

Solved


Divide pi
Divide pi by x!

3 years ago

Solved


Multiply pi
Multiply pi with x!

3 years ago

Solved


area of a sphere

3 years ago

Solved


divide by 5

3 years ago

Solved


Volume of Cylinder
Find the volume of a cylinder

3 years ago

Solved


Getting the absolute index from a matrix
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to get the <http://www.ma...

3 years ago

Solved


Determine if input is divisible by three.
Given a positive integer, n, determine if n is divisible by 3. If yes, the function should output true. If no, false.

3 years ago

Load more