IP 216.73.216.185 has been banned until the end of time because of VPN Detected
If you couldn't possibly be guilty of what you're banned for, the person we banned probably had a dynamic IP address and so do you. Please email soysneed@soyjak.st or post in the /q/ thread.
See http://whatismyipaddress.com/dynamic-static for more information.
Stats

Username: ill_iani
Joined:
Comments made: 3, 0.0 per day
Posts uploaded: 0, 0.0 per day
Posts favorited: 0, 0.0 per day
0 Upvotes / 0 Downvotes
Class: user
User ID: 3646
About Me
function dance_animation()
figure('Name', 'Dance Animation', 'NumberTitle', 'off', 'Color', 'w');
axis([-5 5 -5 5 -1 5]);
axis equal;
grid on;
view(3);
hold on;
[head, body, left_arm, right_arm, left_leg, right_leg] = create_body_parts();
t_body = hgtransform;
t_left_arm = hgtransform('Parent', t_body);
t_right_arm = hgtransform('Parent', t_body);
t_left_leg = hgtransform('Parent', t_body);
t_right_leg = hgtransform('Parent', t_body);
set(body, 'Parent', t_body);
set(left_arm, 'Parent', t_left_arm);
set(right_arm, 'Parent', t_right_arm);
set(left_leg, 'Parent', t_left_leg);
set(right_leg, 'Parent', t_right_leg);
set(head, 'Parent', t_body);
dance_duration = 10; % duration of dance in seconds
tic;
while toc < dance_duration
t = toc;
arm_angle = sin(t * 2 * pi); % oscillate between -1 and 1
leg_angle = sin(t * 2 * pi / 1.5); % different frequency for legs
set(t_left_arm, 'Matrix', makehgtform('translate', [-1, 0, 0], 'zrotate', arm_angle * pi/4));
set(t_right_arm, 'Matrix', makehgtform('translate', [1, 0, 0], 'zrotate', -arm_angle * pi/4));
set(t_left_leg, 'Matrix', makehgtform('translate', [-0.5, -2, 0], 'zrotate', leg_angle * pi/6));
set(t_right_leg, 'Matrix', makehgtform('translate', [0.5, -2, 0], 'zrotate', -leg_angle * pi/6));
drawnow;
end
end
function [head, body, left_arm, right_arm, left_leg, right_leg] = create_body_parts()
[x, y, z] = sphere;
head = surface(0.5 * x, 0.5 * y + 2.5, 0.5 * z + 3, 'FaceColor', 'yellow', 'EdgeColor', 'none');
[x, y, z] = cylinder([0.5 0.5], 20);
body = surface(x, y, z * 2 + 1, 'FaceColor', 'blue', 'EdgeColor', 'none');
[x, y, z] = cylinder([0.2 0.2], 20);
left_arm = surface(x - 1, y, z * 2 + 1, 'FaceColor', 'red', 'EdgeColor', 'none');
right_arm = surface(x + 1, y, z * 2 + 1, 'FaceColor', 'red', 'EdgeColor', 'none');
left_leg = surface(x - 0.5, y - 2, z * 2, 'FaceColor', 'green', 'EdgeColor', 'none');
right_leg = surface(x + 0.5, y - 2, z * 2, 'FaceColor', 'green', 'EdgeColor', 'none');
end
figure('Name', 'Dance Animation', 'NumberTitle', 'off', 'Color', 'w');
axis([-5 5 -5 5 -1 5]);
axis equal;
grid on;
view(3);
hold on;
[head, body, left_arm, right_arm, left_leg, right_leg] = create_body_parts();
t_body = hgtransform;
t_left_arm = hgtransform('Parent', t_body);
t_right_arm = hgtransform('Parent', t_body);
t_left_leg = hgtransform('Parent', t_body);
t_right_leg = hgtransform('Parent', t_body);
set(body, 'Parent', t_body);
set(left_arm, 'Parent', t_left_arm);
set(right_arm, 'Parent', t_right_arm);
set(left_leg, 'Parent', t_left_leg);
set(right_leg, 'Parent', t_right_leg);
set(head, 'Parent', t_body);
dance_duration = 10; % duration of dance in seconds
tic;
while toc < dance_duration
t = toc;
arm_angle = sin(t * 2 * pi); % oscillate between -1 and 1
leg_angle = sin(t * 2 * pi / 1.5); % different frequency for legs
set(t_left_arm, 'Matrix', makehgtform('translate', [-1, 0, 0], 'zrotate', arm_angle * pi/4));
set(t_right_arm, 'Matrix', makehgtform('translate', [1, 0, 0], 'zrotate', -arm_angle * pi/4));
set(t_left_leg, 'Matrix', makehgtform('translate', [-0.5, -2, 0], 'zrotate', leg_angle * pi/6));
set(t_right_leg, 'Matrix', makehgtform('translate', [0.5, -2, 0], 'zrotate', -leg_angle * pi/6));
drawnow;
end
end
function [head, body, left_arm, right_arm, left_leg, right_leg] = create_body_parts()
[x, y, z] = sphere;
head = surface(0.5 * x, 0.5 * y + 2.5, 0.5 * z + 3, 'FaceColor', 'yellow', 'EdgeColor', 'none');
[x, y, z] = cylinder([0.5 0.5], 20);
body = surface(x, y, z * 2 + 1, 'FaceColor', 'blue', 'EdgeColor', 'none');
[x, y, z] = cylinder([0.2 0.2], 20);
left_arm = surface(x - 1, y, z * 2 + 1, 'FaceColor', 'red', 'EdgeColor', 'none');
right_arm = surface(x + 1, y, z * 2 + 1, 'FaceColor', 'red', 'EdgeColor', 'none');
left_leg = surface(x - 0.5, y - 2, z * 2, 'FaceColor', 'green', 'EdgeColor', 'none');
right_leg = surface(x + 0.5, y - 2, z * 2, 'FaceColor', 'green', 'EdgeColor', 'none');
end