Community Profile

# Riyasat

Last seen: 2 months ago Active since 2014

All

#### Content Feed

View by

Solved

Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

5 years ago

Solved

inner product of two vectors
inner product of two vectors

5 years ago

Solved

Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

5 years ago

Solved

Pizza value using expression with parentheses
Pizza prices are typically listed by diameter, rather than the more relevant feature of area. Compute a pizza's value (cost per ...

5 years ago

Solved

The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

5 years ago

Solved

Knight's Tour Checker
Given a matrix a, determine whether or not a legal <http://en.wikipedia.org/wiki/Knight's_tour knight's tour> is present. The kn...

5 years ago

Solved

GJam: 2013 Rd1a Bullseye Painting
<http://code.google.com/codejam/contests.html Google Code Jam> 2013 Round 1a Bullseye challenge is to determine how many full ri...

5 years 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: ...

6 years ago

Solved

Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

6 years ago

Solved

6 years ago

Solved

Find the square root of a value
Given the variable x as your input, find the square root and let the result be represented by y Examples: Input x = 4 O...

6 years 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

6 years ago

Solved

Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

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

6 years ago

Solved

square root
Find the square root (y) of an input (x).

6 years ago

Solved

Finding an element in a vector
x is a vector of unknown length your function should return the index of the first element in the vector that is greater than...

6 years ago

Solved

Perfect Square
Find a function that finds the root of a perfect number!

6 years ago

Solved

Min by mean
Substitute the minimum value in each row of a matrix A by the mean of that row (it should also work if the input is a vector)

6 years ago

Solved

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

6 years ago

Solved

Bruh
Return 'bruh'.

6 years ago

Solved

Hydrogens in a Saturated Hydrocarbon
Given (c) carbon atoms in a saturated hydrocarbon molecule (all single bonds), how many hydrogen atoms (h) are in the molecule?

6 years ago

Solved

Test if a number is numeric or not
Test if a number is numeric or not

6 years ago

Solved

Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: \$99,999.99. E...

6 years ago

Solved

Calculate the logarithm of number
Calculate the logarithm of number x

6 years ago

Solved

calculate the tangent of angle in radians
Calculate the tangent of angle in degrees

6 years ago

Solved

Times 3 problem
When you enter the number, it should return the number multiplied by 3

6 years ago

Solved

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

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

6 years ago

Solved

Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

6 years ago

Solved

Potential Energy
Calculate the potential energy of a rock.

6 years ago