A university student working his way through programming.

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

Solved

Create a figure and plot data

Given two data vectors (x,y), open a new figure and plot the data. Return the figure handle.

1 day ago

Solved

Find the inverse permutation

Given a permutation vector perm (a vector of n elements containing all the elements from 1 to n in some order), return the permu...

1 day ago

Solved

Look and say Conway's sequence

In mathematics, the look-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, 312211, ...

1 day ago

Solved

Game of life - 01

Refer to <https://en.wikipedia.org/wiki/Conway's_Game_of_Life> given a set of cells (the initial state) represented by 1(l...

1 day ago

Solved

Is It a Snake?

Given an m-by-n matrix, return true if the elements of the matrix are a connected "snake" shape from 1 to m*n. Otherwise return ...

1 day ago

Solved

distance to a straight line (2D) given any 2 distinct points on this straight line

Given 2 points P1,P2 on a straight line and a 3rd point, determine the distance of the 3rd point to the straight line. Your answ...

2 days ago

Solved

Property dispute!

Two neighbors have rectangular plots of land A and B. The surveyors give you the coordinates of each. If they overlap, there is ...

2 days ago

Solved

Does the coin touch the line?

If we throw a coin that has a diameter of d, its center will land in a grid n x m. What is the probability that the coin land...

2 days ago

Solved

realsmall

Please return the smallest positive number. This is a little silly problem, but the solution has some funny properties...

3 days ago

Solved

Josephus Survivor

The <http://en.wikipedia.org/wiki/Josephus_problem Josephus Challenge> is to find the position that is the last remaining when e...

3 days ago

Solved

Who am I ?

Who am I ? Write any function that reveals itself under these constraints. Hint: I am combinatorial code, and I don't like stat...

3 days ago

Solved

Have you seen any Spindromes recently?

* Never been to the <http://en.wikipedia.org/wiki/Makemake_(dwarf_planet) dwarf planet makemake> yet? * Assume a new unexplore...

4 days ago

Solved

old wine in a new bottle?

* You have been given an apparently brand new unary function XXX, * that maps some ordinary scalars to scalars, * please gues...

4 days ago

Solved

jumping astronauts

The surface gravity on the moon is approximately 2 m/s^2. Thats why an funny astronauts feels as light as a feather and jumps fr...

4 days ago

Solved

attenuation

A beam of X-rays propagates a length d(1) through a medium with an attenuation coefficient alpha(1). After that the beam propaga...

4 days ago

Solved

Extract part elements of matrix into one new matrix

Given a matrix that includes different nonzero and zero entries, extract the nonzero elements and form a new matrix. The new mat...

4 days ago

Solved

Delete the column with all 0 in the TABLE

In the given table (T), delete the column with all 0 data. e.g. input Banana Apple Orange Mellon __...

4 days ago

Solved

Sort the prime numbers in each row of a matrix

Considering a 3x3 matrix A, sort the prime numbers of each row in ascending order. For exemple: input A=[5 8 2 4; ...

4 days ago

Solved

Blood test?

Assuming: the genetic makeup (genotype) of a child is coded as a pair with two components, combining half genotype of one parent...

4 days ago

Solved

Gambler?

Given a handle to a wealth function, confirm within 100 milliseconds 'Millionaire', 'Likely', or 'Gambler', if wealth() returns ...

4 days ago

Solved

Determine if a four bar mechanism is of Grashof type

A four bar mechanism is composed of four links. if s is the smallest link, l the longest and p,q are the length of the other lin...

4 days ago

Solved

Set a Soroban Abacus

*Description* This problem is the inverse of <http://www.mathworks.com/matlabcentral/cody/problems/136-read-a-soroban-abacus ...

4 days ago

Solved

Read a Soroban Abacus

*Description* The Soroban is the name of the modern Japanese abacus. Information on reading a Soroban can be found <http://we...

4 days ago

Solved

Change the sign

Given a matrix x, return one with each diagonal element replaced by its absolute value and the largest element in absolute value...

4 days ago

Solved

Net Present Value of a Stream of Cash Flows

Calculate <https://en.wikipedia.org/wiki/Present_value the net present value of a future cash flow> vector given; * future ca...

4 days ago

Solved

Delete the rows in the middle

We will delete the rows in the middle and keep the first and the last rows. For example if input is [1 2 1 7 1 8 ...

4 days ago

Solved

Homemade: Control Charts

This problem is a simple version of control charts in statistics. Intput consists from 30 or more observations. * Upper limi...

4 days ago

Solved

Scrabble Scores - 11

This problem builds on the previous problem, wherein you were provided a letter of an existing word on the board and from which ...

5 days ago

Solved

Scrabble Scores - 10

This problem is very similar to the previous problem. Here, you are provided a letter of an existing word on the board from whic...

5 days ago