Anonymous user
Permutations: Difference between revisions
→{{header|MATLAB}}: works in octave as well
No edit summary |
(→{{header|MATLAB}}: works in octave as well) |
||
Line 1,745:
3}, {4, 1, 3, 2}, {4, 2, 1, 3}, {4, 2, 3, 1}, {4, 3, 1, 2}, {4, 3, 2, 1}}</pre>
=={{header|MATLAB}} / {{header|Octave}}==
<lang MATLAB>perms([1,2,3,4])</lang>
{{out}}
|