Given n as input, generate a n-by-n matrix like 'Z' by 0 and 1 .
Example:
n=5 ans= [1 1 1 1 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 1 1 1 1]
Find all elements less than 0 or greater than 10 and replace them with NaN
11626 Solvers
Project Euler: Problem 4, Palindromic numbers
120 Solvers
Getting the indices from a vector
1446 Solvers
Get the elements of diagonal and antidiagonal for any m-by-n matrix
198 Solvers
254 Solvers
Problem Tags