Community Profile

photo

Michael Taylor


86 total contributions since 2018

Michael Taylor's Badges

  • Solver

View details...

Contributions in
View by

Solved


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

plus d'un an ago

Solved


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

plus d'un an ago

Solved


Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

plus d'un an ago

Solved


Side of an equilateral triangle
If an equilateral triangle has area A, then what is the length of each of its sides, x? <<http://upload.wikimedia.org/wikipe...

plus d'un an ago

Solved


Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<http://upload...

plus d'un an ago

Solved


Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...

plus d'un an ago

Solved


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

plus d'un an ago

Solved


Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

plus d'un an ago

Solved


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

plus d'un an ago

Solved


Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

plus d'un an ago

Solved


Rankine to Kelvin Converter
Given input R, degrees Rankine, convert into degrees Kelvin.

plus d'un an ago

Solved


wipe out!
make all the elements in given x zero.

plus d'un an ago

Solved


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

plus d'un an ago

Solved


How to calculate log?
There is a log that have base 5. How to calculate? log5(x)?

plus d'un an ago

Solved


Penny flipping - calculate winning probability (easy)
Two players are playing a fair penny flipping game. For each flip, the winner adds one penny from the loser's collection to his/...

plus d'un an ago

Solved


Summation of array
Given an array, Find the sum of all of the elements in it Examples: Input x = [1 2 3 5; 4 5 6 7]; Output y is 33

plus d'un an 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

plus d'un an ago

Solved


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

plus d'un an ago

Solved


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

plus d'un an ago

Solved


what's my tax amount this year ?
given an annual salary x and a tax rate i calculate the amount that you have to pay.Example x = 70000; i=.10 y_correc...

plus d'un an 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...

plus d'un an ago

Solved


Adding Numbers
Add the input numbers to the original.

plus d'un an ago

Solved


Read it !
read and return the following word. 'M M A TTTTTTTTTL A BBB ' 'MM MM A A T L ...

plus d'un an ago

Solved


free points
function y = your_fcn_name(x) y = x(1)+x(2); end

plus d'un an ago

Solved


Help the Patriots get to the Super Bowl
Given a football by the Patriots, return it to them with 2 psi less air in it. (The original psi is passed as a number to the...

plus d'un an ago

Solved


Box!
Given a box, find the volume of the cube. With each side = a.

plus d'un an ago

Solved


Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

plus d'un an ago

Solved


Area of a circle
Find the value for area of the circle if diameter is given

plus d'un an ago

Solved


Matlab Basics - Rounding I
Write a script to round x DOWN to the next lowest integer: e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2

plus d'un an ago

Solved


Square a Number
Given an input x, return y, which is equal to the square of x.

plus d'un an ago

Load more