Solved

Alternate elements!

Write a function that combines two lists by alternating the elements, e.g. ['a','b','c'], ['1','2','3'] → 'a1b2c3'.

4 months ago

Solved

Apply a function array to an array of numbers

It is required to apply a cell array of functions to a numerical array, where the functions accept only scalar inputs. Exampl...

4 months ago

Solved

Mann-Kendall Correlation

Write a function that returns the <http://en.wikipedia.org/wiki/Kendall_tau_rank_correlation_coefficient Mann-Kendall> correlati...

4 months ago

Solved

Uniform binary crossover

Given two binary vectors, return the two children by combining the genes of them using a binary crossover mask. More informat...

4 months ago

Solved

Weird Diagonal Matrix!!

Given an integer n, create a matrix whose diagonal elements will be square matrices of size 1 to n. For example: n=2 z = ...

4 months ago

Solved

Draw a Diamond shape in ones Matrix with '0' s

Input will be odd numbers.The task is to make a Diamond shape in a ones matrix with '0's where the matrix will be a square matri...

4 months ago

Solved

Accumulate Cells

Given a combining function, a cell array, and an initial value, accumulate the result. For example, accumcell(@plus,{1,...

4 months ago