Faculty member in civil & environmental engineering

Solved

Divide the Least Common Multiple by the Greatest Common Divisor of two numbers

Divide the Least Common Multiple by the Greatest Common Divisor of two numbers. For example, for x=12345 and y=54321, the answer...

1 giorno ago

Solved

Outlier number!

Find a number which has maximum distance from the mean value of vector A. Example: A=[5 2 1 5 6 2 5 9] y=9

3 giorni ago

Solved

Happy Free Wednesday!

Just submit your solution on any Wednesday. *Related Challenges:* # Happy Free Wednesday! # Happy Free 2019! # Happy Fr...

3 giorni ago

Solved

N-Cards Problem

You have a deck of _N_ cards numbered in order from 1 to _N_. You discard the top card (card 1) and place the next card (card 2)...

3 giorni ago

Solved

Too Many Zeros, Dump Them!

Sometimes when I create a matrix, I use this syntax: a = zeros(1000,1000); But when the function ends, I find that I don'...

3 giorni ago

Solved

Calculate mean value of any pair in a vector.

Given a vector A, calculate the mean of 2 number in the vector one by one. example: input: A=[1, 5, 6, 8, 9, 15] output:...

4 giorni ago

Solved

Duration of a trip in minutes

Input is a string which includes the duration of a trip. Convert the duration to minutes. For example if the duration of a t...

4 giorni ago

Solved

Go back n times

You will be given a column vector (such as x = [1; 2; 3; 4; 5; 6]). If (n=3) you will return following; [ 1 NaN NaN NaN ...

4 giorni ago

Solved

collision

several cars (n) were involved in this collision, the input matrix (vm) has n rows and two columns, first column for velocity an...

4 giorni ago

Solved

find "greatest common divisor" of two integer value

A function to find Greatest Common Divisor of two integer input E.G. x=-18 y=96 output should be +6 x=-18; y=96; >>your...

5 giorni ago

Solved

iteration of N blank spot

we have N spot which can be blank o filled calculate the number of iteration for these spots. e.g. N=2 1- blank blank 2- bl...

5 giorni ago

Solved

Multiply Column

Given two input, one matrix and one scalar number For example A is a matrix given A = [ 1 2 2 5 2 5 2 3 4 6...

6 giorni ago

Solved

Leaking?

Graham's law states that the rate of effusion of a gas is inversely proportional to the square root of its molecular weight. A b...

7 giorni ago

Solved

Construct a prime circle

A <https://mathworld.wolfram.com/PrimeCircle.html prime circle> is a circular arrangement of the numbers 1 to 2n such that pairs...

7 giorni ago