1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Find area under curve and energy of function (matlab)

  1. Feb 13, 2014 #1
    1. The problem statement, all variables and given/known data

    For the 1st one you wouldn't really need matlab I guess to find the area under the curve, it is 0 and so is its energy. For the 2nd one I got A=1.73 and so E=2.99.

    2. Relevant equations
    area under curve = evaluate integral from t=t1 to t=t2. in this case t=-2 to t=5 since they are both defined only that far.

    energy = area2

    3. The attempt at a solution
    Used matlab and the waveforms for the functions are plotted below. I used trapz() to approximate the integral i.e. to find the area. I could post the matlab code but wouldn't think it would be of much use.

  2. jcsd
  3. Feb 14, 2014 #2


    User Avatar
    Science Advisor
    Homework Helper

    hi asdf12312! :smile:

    (what are you asking about?)

    for the 2nd one, can't you integrate e-t ?
  4. Feb 14, 2014 #3
    I guess you could lol. Integrating e^-t from t=0 to t=2 and e^(t-4) from t=2 to t=4. so u would get the answer i had listed.. i dont realy know what my question was :(
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted