I teach courses in water resources and environmental fluid mechanics.

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

Solved

Chess ELO rating system

The Elo rating system is a method for calculating the relative chess skill levels of players in competitor-versus-competitor gam...

2 days ago

Solved

Increasing sub-sequence (Level 1)

Given a vector, v, of real numbers, return a positive integer, n, representing the longest contiguous increasing sub-sequence co...

2 days ago

Solved

Is there a GPU Device?

Return true if there is a supported GPU device available on the Cody computer.

3 days ago

Solved

Besson Ranks

Return Besson Ranks. You can look at <https://www.sciencedirect.com/science/article/pii/0895717789903671 this article.> Besso...

3 days ago

Solved

Dealing with correlation results!

In this problem we would like to transform correlation coefficient MATRIX to a VECTOR which includes only unique elements of coe...

4 days ago

Solved

Cryptography with A Square Matrix : Decoding

Previous Problem: <https://www.mathworks.com/matlabcentral/cody/problems/45279-cryptography-with-a-square-matrix-encoding Crypto...

5 days ago

Solved

Cryptography with A Square Matrix : Encoding

Matrix inverse operation can be used to encode or decode of a message. For example text = 'matlab & cody'. numeric e...

6 days ago

Solved

unique with nan

input x = [2 NaN 3 5 NaN; 1 NaN 4 9 NaN; 8 -2 7 6 -2; 7 4 8 5 4]; output y_correct = [2 ...

6 days ago

Solved

Fill the Matrix - 2

Input is a column vector and n. n columns will be added to the left of the input column. The first value of the row is the me...

6 days ago

Solved

Fill the matrix - 1

Input is a column vector and n. n columns will be added to the left of the input column. The first value of the row is the s...

6 days ago

Solved

A shooting competition

In a shooting competition, the target is a square of side L containing a circle of radius R<=L/2. A player scores one point if h...

6 days ago

Solved

provide the numerical answer to these number questions...

return a row matrix containing the sorted numbers which answer the following questions: a) what is the first Knuth number to...

6 days ago

Solved

persistant sum

There will be 9 tests for this problem. In each test you will be provided with 2 integers n=[n1,n2], where n2 is equal to t...

6 days ago

Problem

Compute a sum involving the totient over divisors of a number

Write a function to compute the following sum: where is the totient function. The sum is computed over the divisors of (inc...

6 days ago | 0 | 5 solvers

Solved

The Piggy Bank Problem

Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

7 days ago

Solved

Longest Sequence of NaNs

In an array return the length of longest sequence of nans for each column. x = [ 2 3 1 2 5 6; nan nan 5 n...

7 days ago

Solved

Split array into pieces according to corresponding array

An array x of length n has values 1...m with each value appearing at least once. The values are sorted (n>=m). A second...

7 days ago

Solved

How close to a hole

Suppose you have a description of good places (ones) and bad places (zeros). You want to know your distance from a bad place (in...

7 days ago

Solved

Combine Data With Gaps

Combine data sets a and b where the datasets have "gaps" or unique points. Example: Input a = [1,0; 2,1; ...

7 days ago

Problem

Compute the effective conductivity of a heterogeneous aquifer

Slow flow through soil or another porous medium follows Darcy’s law, which relates the flow of water to the gradient in piezome...

8 days ago | 0 | 3 solvers

Solved

Nuclear Binding Energy

Compute the approximate nuclear binding energy in MeV using the least-squares fit of the semi-emirical mass formula. Round to th...

8 days ago

Solved

Find Elements in Range

Based on a question on <http://www.mathworks.com/matlabcentral/answers/ MATLAB Answers>. Find all the elements of a vector wh...

8 days ago

Solved

Print the largest eigenvalue of A(500)

Write a function that prints the largest eigenvalue of A(500), without any extraneous output. For a positive integer n, let A...

9 days ago

Solved

Beat the test suite if you can :)

Solve this problem based on clues in the test suite.

12 days ago

Solved

Find the mean of a 2-D matrix after excluding elements of specified sub-matrix

You need to find the mean of a 2-D matrix after excluding elements which form an inner sub-matrix. e.g. If the input 2-D matrix ...

12 days ago

Solved

Determine the number of correct and incorrect answers

In a Multiple Choice Question Test, you are to sort out answer from 4 samples, one of them is correct answer. There are 50 quest...

12 days ago

Solved

Raise Matrix to Power

For a given square matrix x and scalar a, find x^a without using '^' or 'mpower'.

12 days ago

Solved

Combination of Vectors

Return a combination of vectors x1, x2 based on y1, y2 per: x(j) = 0 if y1(j) < y2(j) x(j) = x1(j) if y1(j)...

12 days ago