16 different combination of 1 and -1
Wow. This is seriously bad, convoluted code, to do what can be done in one short line.
2*(dec2bin(0:15) - '0')'-1
As Stephen points out, no help. Essentially no comments. No clue. I had to laugh at one of the very few comments in the entire code...
Yep. Not a comment at all, just some deadwood from when the author was writing the code.
No help, no comments, no explanation, no examples, no description, no clue as to what this code actually does.
Poor MATLAB code: multiple loops with if and break statements, which is just calling out to be vectorized:
Create scripts with code, output, and formatted text in a single executable document.