title: Create array of variables in Matlab
body: <p>In the M-file "matrixT.m", i wrote the function matrixT to generate a n*3 matrix like that</p>
  
  <pre><code>function T=matrixT(alpha,n)
  T=zeros(3,n);
  for i=1:n
      T(1,i)=cos(alpha(i));
      T(2,i)=sin(alpha(i));
      T(3,i)=sin(alpha(i)-i*pi/2);
  end
  </code></pre>
  
  <p>Then i use it in my main M-file</p>
  
  <pre><code>alpha=sym('alpha');
  V=subs(hessian(det(matrixT(alpha,3)),alpha),alpha,alpha0);
  </code></pre>
  
  <p>but there are many error. Can you help me to fix this?</p>