Repeating numbers in array
In = [1 0 0 0 2 0 0 0 3 0 0 0 0 0 5 0 0 0 0].
Out = [1 1 1 1 2 2 2 2 3 3 3 3 3 3 5 5 5 5 5].
Problem #2 has a missing right bracket on y_correct.
260 Solvers
Do Fast Fourier Transformation
177 Solvers
206 Solvers
16 Solvers
Matrix Generation from Vector Multiplication
33 Solvers