Solved


Laws of motion 6

2 years ago

Solved


Laws of motion 5

2 years ago

Solved


Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.

2 years ago

Solved


Laws of motion 3

2 years ago

Solved


Laws of motion 2

2 years ago

Solved


Laws of motion 1

2 years ago

Solved


Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...

2 years ago

Solved


does it touch ?
given a sentence, tell how much it touches. input : string output : how much it touches touching : a bilabial phoneme d...

2 years ago

Solved


Sum the two halves of an array with an even number of elements
given an array of an even number of elements, sum the front and back half of the array and return the sums as an array For exam...

2 years ago

Solved


Make a "better" checkerboard matrix
This problem seeks to expand the task in Cody Problem 4 by allowing for the creation of checkerboard matrices that can be rectan...

2 years ago

Solved


Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

2 years ago

Solved


sum of 2 numbers
solve the problem by adding 2 numbers together

2 years ago

Solved


Pascal's pyramid
In Pascal's triangle each number is the sum of the two nearest numbers in the line above: 1 1 1 ...

2 years ago

Solved


Determine if Input is Oddish or Evenish (Odd/Even Sum of Digits)
Given a positive integer n, determine whether n is "oddish" or "evenish" - that is, whether the sum of the digits of n is odd or...

2 years ago

Solved


Find Logic 21

2 years ago

Solved


Calculate the sum of first x natural numbers
Calculate the sum of first x natural numbers for example if n=10 output =1+2+..+10=55

2 years ago

Solved


Convert row and column subscripts to linear indices
Convert 2D row and column subscripts to linear indices WITHOUT sub2ind Example: row = [1 2 3 1]; col = [2 2 2 3]; sz = [3 3]...

2 years ago

Solved


Add Even and Subtract Odd Numbers in an Array
For an input array, add all the even values and subtract the odd values. This final value is the output. E.g. input = [1 2 3 4...

2 years ago

Solved


Bag of apples
find probabilty of getting red apples from a bag of 'r' red and 'g' green apples.

2 years ago

Solved


Build the Well
Calculate the total time taken for building 'n' wells given : Worker A takes a hr to build the well alone Worker B takes b hr...

2 years ago

Solved


Is it the answer to life the universe and everything?
The answer to life the universe and everything is 42, but this is naturally in base 13. Unfortunately, MATLAB is in base 10, so ...

2 years ago

Solved


2行2列の行列の行列式を求めてみよう
ある2行2列の行列の入力に対して、行列式を出力してください。 例えば、入力が(1,2; 3,4)のとき、出力は1*4-3*2で-2となります。

2 years ago

Solved


Find collatz series next number
For given x, if x is even, output is (x/2) if x is odd, output is (3x+1)

2 years ago

Solved


Check for armstrong number
Given a number, check if it is an armstrong number. Eg: n = 371 Output: 1 Eg: n = 75 Output: 0

2 years ago

Solved


findPositiveEvenNumbers
Write a MATLAB function findPositiveEvenNumbers that takes an array of integers as input and returns a new array containing only...

2 years ago

Solved


Find the volume of a cube
Given a cube with edge length x, calculated the volume of the cube.

2 years ago

Solved


Find the area of a square

2 years ago

Solved


Find Even Numbers in Vector
Given a vector x, return the even entries of the vector in the order they appear in x.

2 years ago

Solved


Sum of Squares
Given a vector v of length n, write a MATLAB function to calculate the sum of the squares of its elements.

2 years ago

Solved


Even Sum
Calculate the sum of all even numbers between 1 and a given positive integer n. Write a function that takes n as input and retur...

2 years ago

Load more