View Single Post
Old 05-26-2005, 06:08 PM   #1
HelloHockeyFans
n00b!
 
HelloHockeyFans's Avatar
 
Join Date: Jul 2004
Exp:
Default

Aloha fellow EE's.

I have this code which won't compile... and I'm freaking out 'cause I can't figure it out!!!

x = 0;
found = 0;
first_value = 0;
for n=0:1:25000
if (( data(n) == 5 ) & ( found == 0))
if ( first_value == 0)
time1 = n;
first_value = 1;
found = 1;
else
time2 = n;
found = 1;
first_value = 0;
angular_velocity(x) = 2*pi*1/(time2-time1);
x = x + 1;
end
end
if ( found == 1 )
if ( data(n) ~= 5)
found = 0;
end

end
end





Anybody out there who can help me?
HelloHockeyFans is offline   Reply With Quote