Find area under curve and energy of function (matlab)

  • Thread starter asdf12312
  • Start date
  • #1
199
1

Homework Statement


image.png


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.


Homework 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


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.

image2.png
 

Answers and Replies

  • #2
tiny-tim
Science Advisor
Homework Helper
25,832
251
hi asdf12312! :smile:

(what are you asking about?)

for the 2nd one, can't you integrate e-t ?
 
  • #3
199
1
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 :(
 

Related Threads on Find area under curve and energy of function (matlab)

Replies
6
Views
999
  • Last Post
Replies
1
Views
4K
  • Last Post
Replies
1
Views
4K
Replies
4
Views
13K
  • Last Post
Replies
8
Views
9K
Replies
5
Views
5K
  • Last Post
Replies
5
Views
815
  • Last Post
Replies
1
Views
393
Top