theta = 0:0.025*pi:2*pi;
for j = 1:length(tout)
plot(cos(carpositions.signals.values(j, :)*2*pi), ...
sin(carpositions.signals.values(j, :)*2*pi), 'o'); 
axis([-1, 1, -1, 1]);
hold on; plot(cos(theta), sin(theta), 'r'); hold off; 
axis equal;
M(j) = getframe;
end
