# FindPeaks() of a 1024 x 116 Matrix

I have a matrix that I read into MatLab that is 116 spectra (columns) each being 1024 elements (rows). Each spectrum has a peak and I’m looking to determine the following information from each spectrum:

- Peak value

- Peak position

- Peak width at a set height, like 10% or 30% of the peak height. What I’d really like is to know the first and last x element of each peak

I’ve completed the Signal Processing Toolbox course and it didn’t go over the FindPeaks() function. Please, any help would be greatly appreciate. Even if it’s direction to a good source on the function. Thank you!

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

findpeaks only works on vector input; just use a loop and pass each column of your array in turn.

There’s a fair amount of background information and examples of using findpeaks in the documentation; I’m unaware of any other tutorial but the web if full of stuff.

I’d suggest “just try it” and see what you get. If the spectra are only one-peaked, it seems it could hardly go wrong.

https://www.matlabsolutions.com/resources/findpeaks-of-a-1024-x-116-matrix.php

--

--

--

## More from Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

Love podcasts or audiobooks? Learn on the go with our new app.

## Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.