frontal

by

 

15 Mar 2011 (Updated )

Do: C = frontal_mtimes(A, b); not: for k=1:size(A,3), C(:,:,k) = A(:,:,k) * b(:,:,k); end

frontal_eye (n, num_pts)
function answer = frontal_eye (n, num_pts)
    answer = repmat(eye(n), [1,1,num_pts]);
end

%!test
%! myassert(eye(3), frontal_eye(3, 1));

Contact us