Faculty member in civil & environmental engineering

Solved

counting sequence

A counting sequence is formed by "counting" the entries in a given sequence.

1 día ago

Solved

Find matching string from a list of strings

Write a function that returns a string that is a unique match (if it exists) of the string |inStr| from a list of strings |strLi...

1 día ago

Solved

Transposition as a CIPHER

This all about transcripting a text message. If the input string is: *s1 = 'My name is Sourav Mondal'*, then the output is: *s2...

1 día ago

Solved

Decimal Comparison

*Background* A utility of particular interest to Cody and other MATLAB ventures is comparing the equality of two numbers. In ...

1 día ago

Solved

Count alternating permutations

In an alternating permutation of numbers 1 to n, the numbers are arranged so that they alternately increase and decrease. For ex...

1 día ago

Solved

Mongean Shuffle : 2

Extension to <https://www.mathworks.com/matlabcentral/cody/problems/2479-mongean-shuffle problem 2479>: Determine the number...

2 días ago

Solved

Solve a Weird Calculator puzzle

The September 2012 issue of GAMES Magazine had a Weird Calculator puzzle by Erich Friedman. In this puzzle, the calculator has o...

2 días ago

Solved

Mongean Shuffle

A Mongean shuffle of an n card deck starts with putting the initial deck on the left hand side. * The top card of the deck is...

2 días ago

Solved

Tune your guitar

Given an input string with the scientific pitch notation for standard tuning ( <http://en.wikipedia.org/wiki/Guitar_tunings#Stan...

3 días ago

Solved

Poker Series 09: IsHighCard

The Poker Series consists of many short, well defined functions that when combined will lead to complex behavior. Our goal is t...

4 días ago

Solved

Poker Series 08: IsPair

The Poker Series consists of many short, well defined functions that when combined will lead to complex behavior. Our goal is t...

4 días 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...

4 días ago

Solved

Center of mass

Given a matrix M(m,n), where m is the number of vertices of the geometrical element and n is 2 or 3 (2D-plane figure or 3D-solid...

4 días ago

Solved

Polynomial division

Divide a polynomial u by polynomial v and return the quotients only. Example: u = x^4+3*x^3+5*x+3 v = x^2+1 Answer: ...

4 días ago

Solved

Temperature Conversion Utility

There are a few problems on Cody regarding temperature conversion (C to K, C to F, F to C), but none include Rankine. Furthermor...

5 días ago

Solved

compare strings

Given 2 strings and 3 actions (Insert,delete,replace) on characters. Find the difference between two strings. Example: str...

5 días ago

Solved

arrangement of symbols

There are n different symbols in which m symbols are identical (m<n). How many different arrangement can we make with these symb...

6 días ago

Solved

mathematics , probability problem

How many different result can we have, rolling k dice?

6 días ago

Solved

Vector push

Append an element |x| to the end of the vector |v| and return both the extended vector and the new number of its elements. |x| c...

7 días ago

Solved

Interpolate scattered data.

Most data was scattered, and there is no gird. There are three data [c] in three different area [x,y]. x=[1 3 4]; y=[1 ...

7 días ago

Solved

Multiplication

Multiply two numbers in a different manner. The numbers are given to you as vectors x and y. Example x = [ 1 2 0 1 ] ...

7 días ago

Solved

Moving average (variable kernel length)

Find the moving average in a vector. The kernel length is a variable. For example x = 1:10 kernel_length = 2 would r...

7 días ago

Solved

Subtract integers and add doubles

Create a function that subtracts a from b if a and b are integers and adds them if they are floats.

7 días ago

Solved

Please check the last row

We have data of matrix, that is input. That contains 2 or more rows and the last row should contain the average of each column,...

7 días ago

Solved

Concatenated roots

Which is the value of this infinte concatenated roots? <<https://s27.postimg.org/i4hkin7xf/Code_Cogs_Eqn.gif>> Note: If ...

7 días ago