Sans test cases with rank 11 (or even 3), it's too easy to provide a solution which passes the test but fails for, say, dyadics. Or did the originator really mean to stick with tensors (rank 2) of arbitrary x and y dimension?
Return the first and last characters of a character array
3674 Solvers
Generate N equally spaced intervals between -L and L
570 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3896 Solvers
392 Solvers
Returning a "greater than" vector
189 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!