[Scilab-users] rotating animated rod in scilab

Mohammad EL JAWAD mohammad.eljawad at gmail.com
Sun Jul 13 12:44:11 CEST 2014


hi all;
i have a for loop that calculates an angle theta
then i generate two matrix x=[-cos(theta) cos(theta)] and y=[-sin(theta) 
sin(theta)] in matlab i use the drawnow command inside the for loop to 
generate the animation of the rotating rod
as you know the drawnow matlab function has no scilab equivalent and i 
was wondering if there is an way to generate the animation
regards
my code in matlab is something like that

for q=1:N
theta = //calulation step
x=[-cos(theta) cos(theta)]
y=[-sin(theta) sin(theta)]
plot(x,y)
drawnow
end



More information about the users mailing list