Calgarypuck Forums - The Unofficial Calgary Flames Fan Community

Go Back   Calgarypuck Forums - The Unofficial Calgary Flames Fan Community > Main Forums > The Off Topic Forum
Register Forum Rules FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread
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
Old 05-26-2005, 06:14 PM   #2
HelloHockeyFans
n00b!
 
HelloHockeyFans's Avatar
 
Join Date: Jul 2004
Exp:
Default

Got it!

Indices can't be 0! :P

stupid me
HelloHockeyFans is offline   Reply With Quote
Old 05-26-2005, 08:15 PM   #3
V
Franchise Player
 
V's Avatar
 
Join Date: Feb 2005
Exp:
Default

Wow, I haven't been out of EE for four years yet, and that looks like Greek to me.

Needless to say, I haven't used a whole lot of Matlab on the job. Come to think of it, I don't think I've used 99% of the crap that I learned in class.
V is offline   Reply With Quote
Old 05-26-2005, 11:39 PM   #4
Phanuthier
Franchise Player
 
Phanuthier's Avatar
 
Join Date: Feb 2002
Location: Silicon Valley
Exp:
Default

Quote:
Originally posted by Dominicwasalreadytaken@May 27 2005, 02:15 AM
Wow, I haven't been out of EE for four years yet, and that looks like Greek to me.

Needless to say, I haven't used a whole lot of Matlab on the job. Come to think of it, I don't think I've used 99% of the crap that I learned in class.
I've been out for 1 month (for summer) and it looks Greek to me too
__________________
"With a coach and a player, sometimes there's just so much respect there that it's boils over"
-Taylor Hall
Phanuthier is offline   Reply With Quote
Old 05-27-2005, 03:56 PM   #5
the_only_turek_fan
Lifetime Suspension
 
the_only_turek_fan's Avatar
 
Join Date: Jul 2003
Location: Calgary, Alberta
Exp:
Default

I have forgotten everything about Matlab since I have been out of school for the last year.

Needless to say, I haven't used a whole lot of Matlab on the job. Come to think of it, I don't think I've used 99% of the crap that I learned in class.

What kind of work do you do?

In my current internship job, I use NOTHING from school.

But, when I was a summer student last summer I used a little bit like

V = IR, P = IV

Basic stuff like what transformers do, 3 phase voltages, circuit breakers, and some other stuff.

But right now in Telecom I dont use anything.
the_only_turek_fan is offline   Reply With Quote
Old 05-28-2005, 10:53 AM   #6
V
Franchise Player
 
V's Avatar
 
Join Date: Feb 2005
Exp:
Default

I'm in the consulting business. Mainly I design streetlighting, but I also dabble in commercial buildings. I do a lot of fire alarm design as well.

There was one course at the U of A called Distribution Power Design for Commercial Buildings. It was a course that taught voltage drop, wire sizing, code requirements, and all that good stuff. I can probably say that it was the only course that taught me something that I would really need for the work that I do. Funny thing is, that course has now been cancelled, or so I hear.

I don't know what the courses are like at the U of C, but looking back I'm dissapointed that there is nothing at the U of A about lighting design, or fire alarm design and so very little at 120V design. A lot of us go into the consulting industry, and it would be nice if the course load reflected that.
V is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 08:31 AM.

Calgary Flames
2024-25




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright Calgarypuck 2021 | See Our Privacy Policy