MATLAB: I need help with integrating a specific area under a peak, to get a value for the thermal noise to derive a spring constant?

MATLABpsdspring constant

So I am doing this assignment in where I have to Integrate the area under a certain peak after I derived the PSD. I finished all that but I cannot find anything to integrate the area of peak I want to can you guys please help me out?

Best Answer

Are you trying to integrate a set of data or a function?
For the former case, see trapz and the functions listed in the See Also section of its documentation.
For the latter case see integral (for numeric integration) or int (for symbolic integration) and the functions to which their documentation pages refer in their See Also sections.