Anonymous user
Catalan numbers/Pascal's triangle: Difference between revisions
→{{header|MATLAB}} / {{header|Octave}}: {{Out}}
No edit summary |
(→{{header|MATLAB}} / {{header|Octave}}: {{Out}}) |
||
Line 232:
<lang MATLAB>p = pascal(17);
diag(p(2:end-1,2:end-1))-diag(p,2)</lang>
{{Out}}
<pre>ans =
1
|