05-26-2005, 06:08 PM
|
#1
|
n00b!
|
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?
|
|
|
05-26-2005, 06:14 PM
|
#2
|
n00b!
|
Got it!
Indices can't be 0! :P
stupid me
|
|
|
05-26-2005, 08:15 PM
|
#3
|
Franchise Player
|
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.
|
|
|
05-26-2005, 11:39 PM
|
#4
|
Franchise Player
Join Date: Feb 2002
Location: Silicon Valley
|
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
|
|
|
05-27-2005, 03:56 PM
|
#5
|
Lifetime Suspension
Join Date: Jul 2003
Location: Calgary, Alberta
|
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.
|
|
|
05-28-2005, 10:53 AM
|
#6
|
Franchise Player
|
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.
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -6. The time now is 08:31 AM.
|
|