Align curves along their minma
Show older comments
Hi all,
I have a matrix (33X 5000) and each row of this matrix is a curve. I want to center all the curves along their minima, which I have already found and it is the column vector m=(51X1). I tried with a loop but it is not working. Can you help me with that? thanks .
7 Comments
Matt J
on 28 Oct 2021
We have to see what you tried to be able to tell you how to fix it.
Paola
on 28 Oct 2021
Image Analyst
on 28 Oct 2021
Why is the (badly-named) m 51 rows while the matrix is 33 rows? I thought you'd have one min index for each of the 33 rows of the matrix? So m should have 33 rows, not 51.
David Hill
on 28 Oct 2021
What do you mean by 'center' all the curves along their minima?
Paola
on 28 Oct 2021
Image Analyst
on 28 Oct 2021
@Paola I think my code below in my answer should solve it, right?
Paola
on 31 Oct 2021
Accepted Answer
More Answers (0)
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!