Solved

Restricted Addition v1

Add two numbers without use of common arithmetic operations. Unfortunately, in order to enforce this restriction, other restrict...

20 days ago

Solved

Restricted Addition v3

This problem is <https://www.mathworks.com/matlabcentral/cody/problems/45258-restricted-addition-v2 Restricted Addition v2> with...

20 days ago

Solved

Restricted Addition v2

This problem is <https://www.mathworks.com/matlabcentral/cody/problems/45252 Restricted Addition v1> with more restrictions. Als...

20 days ago

Solved

Is it really a 5?

A number containing at least one five will be passed to your function, which must return true or false depending upon whether th...

20 days ago

Solved

Octoberfest festival

A group of students decided to visit Octoberfest festival. First they ordered one beer, then after half-hour they taken one more...

20 days ago

Solved

A sequence of Ones

You are given number(s) with all digits - 1. Your answer will depend on the count of 1 in the given number, for example - x1...

21 days ago

Solved

Find best placement for ordered dominoes (harder)

Given a list of ordered pairs, find the order they should be placed in a line, such that the sum of the absolute values of the d...

21 days ago

Solved

Find perfect placement of non-rotating dominoes (easier)

Given a list of ordered pairs, find the order they should be placed in a line, such that the sum of the absolute values of the d...

21 days ago

Solved

Scoring for oriented dominoes

Given a list of ordered pairs, and the order they should be placed in a line, find the sum of the absolute values of the differe...

21 days ago

Solved

Young's modulus

Given a value of <http://en.wikipedia.org/wiki/Young_modulus Young's modulus> (Y) expressed on MegaPascal, convert it to the uni...

22 days ago

Solved

Stress-Strain Properties - 7

The toughness of a material is technically defined as the plastic strain energy absorbed by the material (the olive region in th...

22 days ago

Solved

Stress-Strain Properties - 6

The total energy absorbed by a material up to failure in a tensile test is termed the absorbed strain energy. With respect to th...

22 days ago

Solved

Stress-Strain Properties - 5

Similar to the previous problem, materials may be characterized by their stiffness-to-weight ratio, which is the elastic modulus...

22 days ago

Solved

Stress-Strain Properties - 4

A common measure of the ability of a material to carry load per unit mass is termed strength-to-weight ratio and is calculated b...

22 days ago

Solved

Put two time series onto the same time basis

Use interpolation to align two time series onto the same time vector. This is a problem that comes up in <http://www.mathwork...

22 days ago

Solved

Stress-Strain Properties - 3

A brittle material will not exhibit a yield point. In other words, the yield point and failure point coincide. In such cases, th...

22 days ago

Solved

Stress-Strain Properties - 2

The resilience of a material is its ability to resist permanent (or plastic) deformation. The resilience coincides with the elas...

22 days ago

Solved

Stress-Strain Properties - 1

This is the first in a series of problems regarding mechanics of materials, in particular, material properties drawn from stress...

22 days ago

Solved

"Low : High - Low : High - Turn around " -- Create a subindices vector

Let two vectors *lo* and *hi* be given. The job is to create a index vector like so idx = [lo(1):hi(1) lo(2):hi(2) ...]...

23 days ago

Solved

Matrix indexing with two vectors of indices

Given a matrix M and two index vectors a and b, return a row vector x where x(i) = M(a(i),b(i)).

23 days ago

Solved

middleAsColumn: Return all but first and last element as a column vector

Given input A, return all but the first and last elements, arranged as a column vector. (I.e., all dimensions after the first s...

23 days ago

Solved

Piecewise linear interpolation

Given an Mx2 vector and a row of M-1 integers, output a two column vector that linearly interpolates Y times between each succes...

23 days ago

Solved

Collect a set of candy wrappers

This past Halloween, the siblings Matilda and Labrun amused (and sometimes confused) their many neighbors with their costumes in...

23 days ago