Multiplication tables: Difference between revisions
Content added Content deleted
(→{{header|MATLAB}}: Optimized the solution code) |
m (→{{header|MATLAB}}: fixed a typo) |
||
Line 916: | Line 916: | ||
<lang MATLAB>function table = timesTable(N) |
<lang MATLAB>function table = timesTable(N) |
||
%Generates a column vector with |
%Generates a column vector with integers from 1 to N |
||
rowLabels = (1:N)'; |
rowLabels = (1:N)'; |
||