Results 1 to 17 of 17

Thread: Quick Matlab Question     submit to reddit submit to twitter

  1. #1
    Title: "HUBBLE GOTCHU!" (without the quotes, of course [and without "(without the quotes, of course)", of course], etc)
    Join Date
    Jul 2006
    Posts
    3,141
    BG Level
    7

    Quick Matlab Question

    If I'm in the middle of a calculation and I want to stop, how do I do so? I accidentally set temperature to zero, and at line 122 I have exp(2inter/T). So now I'm getting a bunch of error messages saying "Warning: Division by Zero Line 122". But instead of stopping once it reached the first error, it continues my for loop again and again getting the same error every time. This for loop is 1000 steps, which is inside another for loop, which is inside another for loop (which I think is inside another for loop), so this is taking forever and I can't make it stop until it finishes every single step.

  2. #2
    Banned.

    Join Date
    Jan 2006
    Posts
    6,859
    BG Level
    8

    Go to the debug option from your drop down menus at the top. Select "always stop when errors", and it will now stop at any errors, as if there was a break point there.

  3. #3
    Title: "HUBBLE GOTCHU!" (without the quotes, of course [and without "(without the quotes, of course)", of course], etc)
    Join Date
    Jul 2006
    Posts
    3,141
    BG Level
    7

    Thanks, I think it worked.

  4. #4
    D. Ring
    Join Date
    Jun 2006
    Posts
    4,855
    BG Level
    7
    FFXI Server
    Ragnarok
    WoW Realm
    Nazjatar

    does ctrl+break not work on this program?

  5. #5
    29 in magical dog years
    Join Date
    Mar 2008
    Posts
    2,039
    BG Level
    7
    FFXIV Character
    Jackson Junior
    FFXIV Server
    Excalibur

    You know, having never taken any math beyond Algebra II in 11th grade, I wiki'd MATLAB, hoping it was some program that would do my math homework next term and was utterly confused. Cliff notes version of the program, anyone?

  6. #6
    Ive sucked 27 dicks, in a row.
    Join Date
    Apr 2006
    Posts
    1,569
    BG Level
    6

    Quote Originally Posted by Jakson View Post
    You know, having never taken any math beyond Algebra II in 11th grade, I wiki'd MATLAB, hoping it was some program that would do my math homework next term and was utterly confused. Cliff notes version of the program, anyone?
    MATLAB is a program for doing (very) heavy numerical computations, usually involving matrices and/or vectors. If you're looking for something to do your math homework, you'd probably want a computer algebra system like Mathematica, Maple (both $$$) or Maxima (free).

    Edited: I'm an idiot who can't spell.

  7. #7
    Banned.

    Join Date
    Jan 2006
    Posts
    6,859
    BG Level
    8

    Matlab is god.

    Matlab could cure cancer if you have a smart enough programmer..

    It is the standard for advanced algorithm development on anything that is heavily physics based or matrix based (i.e. life).

    When I fap, I fap to matlab.

  8. #8
    Relic Shield
    Join Date
    Oct 2006
    Posts
    1,588
    BG Level
    6

    Quote Originally Posted by Woozie View Post
    If I'm in the middle of a calculation and I want to stop, how do I do so? I accidentally set temperature to zero, and at line 122 I have exp(2inter/T). So now I'm getting a bunch of error messages saying "Warning: Division by Zero Line 122". But instead of stopping once it reached the first error, it continues my for loop again and again getting the same error every time. This for loop is 1000 steps, which is inside another for loop, which is inside another for loop (which I think is inside another for loop), so this is taking forever and I can't make it stop until it finishes every single step.
    ctrl+C is always your friend. :D

  9. #9
    Nidhogg
    Join Date
    Jun 2007
    Posts
    3,527
    BG Level
    7
    FFXI Server
    Odin
    WoW Realm
    Lightbringer

    MATLAB is definitely one of the most impressive (and frustrating) mathematical modeling programs I have had the pleasure (and annoyance) of working with. It's definitely like a high maintenance, but very hot woman.

  10. #10
    Hydra
    Join Date
    Jul 2006
    Posts
    122
    BG Level
    3
    FFXI Server
    Ragnarok

    Quote Originally Posted by Neosutra View Post
    Matlab is god.

    Matlab could cure cancer if you have a smart enough programmer..

    It is the standard for advanced algorithm development on anything that is heavily physics based or matrix based (i.e. life).

    When I fap, I fap to matlab.
    Matlab is very handy for us Electrical Engineers. It does a great job at modeling complex control systems with feedback and electromagnetics. Also the software key makes me laugh every time I install it at home... that fucker is like 100+ characters long.

  11. #11
    Old Merits
    Join Date
    Sep 2006
    Posts
    1,010
    BG Level
    6

    matlab is great for slope field and approximating differential equations too

  12. #12
    Spiders are Awesome
    Join Date
    Sep 2006
    Posts
    7,073
    BG Level
    8

    Quote Originally Posted by Jakson View Post
    You know, having never taken any math beyond Algebra II in 11th grade, I wiki'd MATLAB, hoping it was some program that would do my math homework next term and was utterly confused. Cliff notes version of the program, anyone?
    What you want is a Ti-89

  13. #13
    2k for handjobs is a deal yo
    Join Date
    Apr 2009
    Posts
    764
    BG Level
    5

    do they have software for methlabs now, cool

  14. #14
    House Azazael
    Join Date
    Mar 2007
    Posts
    1,641
    BG Level
    6
    FFXI Server
    Fenrir

    I totally read the title as 'Quick Methlab Question' ><

    I miss using it though, was fun to plug in some of the most retarded complex stuff and see it come back super quick with an answer.

  15. #15
    Fake Numbers
    Join Date
    Jul 2008
    Posts
    86
    BG Level
    2

    Quote Originally Posted by Kerberoz View Post
    What you want is a Ti-89
    Evil! Pure evil! You must not be swayed!

    But seriously, it's a very powerful calculator, and can save enormous amounts of work (Equation Solver and whatnot, which can help during a test.).... Well, and I guess people like typing up all the equations they need, and everything else! It's just not for me. It does almost everything for you and many people now have no idea how to do even basic Algebra. I believe I'm the only one in my EE classes that does not have one. I'm cool with my trusty 'ole TI-34II. (Yeah, I get laughed at...)

    Don't get me wrong, there's people who use them and still know their shit, but there's very few of them.

    Fight the power!

    Also, Matlab ftmfw! If you can get it early on, mess with it. It's so great.

  16. #16
    Spiders are Awesome
    Join Date
    Sep 2006
    Posts
    7,073
    BG Level
    8

    Yeah, obviously don't use the calculator to do all your work or you'll never learn to get by without it. It's nice for checking your work, or when you're pressed for time, though.

    I never paid attention in AP calc and ended up writing a full-featured madlibs program in ASM that year >.> and failed the exam, so yeah, be careful.

  17. #17
    blax n gunz
    Join Date
    May 2005
    Posts
    11,141
    BG Level
    9

    Quote Originally Posted by Kerberoz View Post
    Yeah, obviously don't use the calculator to do all your work or you'll never learn to get by without it. It's nice for checking your work, or when you're pressed for time, though.

    I never paid attention in AP calc and ended up writing a full-featured madlibs program in ASM that year >.> and failed the exam, so yeah, be careful.
    My high school buddy wrote tetris and video poker for our TI-89s. Good times.

Similar Threads

  1. quick movie question
    By TheCursedGatts in forum General Discussion
    Replies: 15
    Last Post: 2007-06-25, 06:55
  2. Quick PS1 question...
    By Carbon in forum General Discussion
    Replies: 5
    Last Post: 2006-04-02, 20:46