Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab and physics

  1. Sep 13, 2014 #1
    im in a scientific computing class, where we are using matlab to model harmonic oscillators and pendulums using like the euler method for ode's. We pretty much got shoved off the deep end with the programming side. I use google to look up things to help me. But its not working that well. What is the best way to learn matlab and to code. I also try watching youtube videos. What is the quickest way to learn.
  2. jcsd
  3. Sep 13, 2014 #2

    Dr Transport

    User Avatar
    Science Advisor
    Gold Member

    write code, run code, write code, run code.......in other words, practice and interrogate others posted code will help
  4. Sep 14, 2014 #3


    User Avatar
    Science Advisor
    Gold Member
    2017 Award

    MATLAB has some (free?) tutorials that are very good. Depending on how sophisticated the class programming is, a weekend of watching the tutorials should help a lot.
  5. Sep 22, 2014 #4


    User Avatar
    Gold Member

    I recommend reading the doc for MATLAB. FactChecker is right, if you sacrifice a weekend to watching videos, reading, and experimenting, then you'll be well on your way. The only way to get comfortable reading code is to read it a lot, and the only way to get comfortable writing it is to do a ton of reading and writing of your own. You'll find yourself running the program, making small tweaks, rerunning it, etc...

    If you run into more specific problems later, you can always post them here for people to help.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook