clear; clc;

t = linspace(0, pi, 1e6);

tic
n = length(t);
z = zeros(1, n);
for i = 1 : n
    z(i) = sin(t(i));
end
toc

tic
y = sin(t);
toc
