title: Build multiplication table in matlab
body: <p>for school exercise i need to build an multiplication table 10x10 using element-by-element function, and make it as short as possible.
  this is the code i wrote (working but too long), please suggest some twicks to this code.
  thanks in advance (:</p>
  
  <pre><code>base=zeros(10);
  oneten=[1:1:10];
  base(1,:)=1.*oneten;
  base(2,:)=2.*oneten;
  base(3,:)=3.*oneten;
  base(4,:)=4.*oneten;
  base(5,:)=5.*oneten;
  base(6,:)=6.*oneten;
  base(7,:)=7.*oneten;
  base(8,:)=8.*oneten;
  base(9,:)=9.*oneten;
  base(10,:)=10.*oneten
  </code></pre>