VVV REGISTER AN ACCOUNT VVV![]() ^^^ CLICK THE RETARD BUTTON ^^^ It will make this annoying-as-fuck notice go away. |
| Could anyone with MATLAB/programming experience; review this code for me? | |
|---|---|
| Tweet Topic Started: Tuesday 12-02-2008, 15:30 (102 Views) | |
| Fermicelli | Tuesday 12-02-2008, 15:30 Post #1 |
![]()
Italian delight
|
I would do it myself but my license somehow expired, and I can't test it on this computer. The assignment was to make a Matlab script that can identify whether a point P3 lies on, above or below the same line formed by points P1 and P2. This is what I came up with:
I have no scripting experience whatsoever, so please don't laugh at me for this being so hard for me. Edit: thank you, Seto. Editing my original post so I won't accidentally copy the wrong stuff tomorrow. |
![]() |
|
| Wakapanda Of Doom | Tuesday 12-02-2008, 16:17 Post #2 |
![]()
ONE OF THE ORIGINAL FUCKS
|
<_< I feel like an idiot trying to decypher whatever that quote was ... |
![]() |
|
| Steve Jobs | Tuesday 12-02-2008, 17:46 Post #3 |
![]()
Ceo, Founder, Deity of Apple, Inc
|
First off, shouldnt it be ((y3 - y2)/(x3- x2))? It looks like you are testing to see if the point is on the line based off of whether the slope between p1 and p2 equals the slope between p2 and p3, right? I see nothing wrong with that concept or how you did it, minus the first thing I said. I only have programmed in MathLab once, so I am not sure if you have syntax errors, but the general concept you have is good. |
![]() |
|
| MLWW | Tuesday 12-02-2008, 17:50 Post #4 |
![]()
Dutch Bastard
|
|
![]() |
|
|
|
Tuesday 12-02-2008, 17:54 Post #5 |
Boobs
|
|
![]() |
|
| Fermicelli | Tuesday 12-02-2008, 18:04 Post #6 |
![]()
Italian delight
|
Whoops. Thank you, Seto. |
![]() |
|
| Legoroll | Tuesday 12-02-2008, 22:20 Post #7 |
![]()
Dr. Pepper
|
lol Do somthing in Psuedo-Code (and a little VBasic) THEN ask for my help...everything else is beyond me. |
![]() |
|
| Speed | Tuesday 12-02-2008, 22:20 Post #8 |
![]()
Bounty Hunter
|
Ugh, I hate MATLAB. I'm glad that class is over. @_@ |
![]() |
|
| RikusSexSlave | Tuesday 12-02-2008, 22:44 Post #9 |
|
Fuckin Hadoken
|
My roommate is studying MATLAB. I'd call him over to look at it, but I don't know what he'd think of me if he saw my avatar. |
![]() |
|
| Fermicelli | Tuesday 12-02-2008, 22:54 Post #10 |
![]()
Italian delight
|
What if it arouses him?
|
![]() |
|
| RikusSexSlave | Tuesday 12-02-2008, 23:11 Post #11 |
|
Fuckin Hadoken
|
His granny fetish is quite the opposite of 3 year-old powerpuff girls. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Wackapedia · Next Topic » |














7:21 PM Jul 11