Matlab: Finding localised minimum and maximum of data set Watch

stuckstudent
Badges: 0
Rep:
?
#1
Report Thread starter 5 years ago
#1
If anyone can help me with this problem I'd be beyond grateful. I'm trying to analyse a 30,000 item data set of position of knee height against time (it's a gate study). I want to write a function where I can input my data for knee height and the corresponding times (two seperate vectors) and get an output of four distinct vectors of the localised minimum values of height and corresponding times and then the localised maximum of height and corresponding times.

I've tried using the findpeaks function which has given me the output of the maximum heights and the corresponding vector location (i.e. there is a maximum in say the 54th element) so I need a way to match up that data with the time data and whilst this works in the command window, it won't work in the function. This also doesn't help me with my minimum problem!

All help appreciated!!
0
reply
TSR Learn Together
Badges: 9
Rep:
?
#2
Report 5 years ago
#2
Hi there,

While you're waiting for an answer, did you know we have 300,000 study resources that could answer your question in TSR's Learn together section?

We have everything from Teacher Marked Essays to Mindmaps and Quizzes to help you with your work. Take a look around.

If you're stuck on how to get started, try creating some resources. It's free to do and can help breakdown tough topics into manageable chunks. Get creating now.

Thanks!

Not sure what all of this is about? Head here to find out more.
0
reply
X

Quick Reply

Attached files
Write a reply...
Reply
new posts
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

University open days

  • Manchester Metropolitan University
    Undergraduate Open Day Undergraduate
    Wed, 19 Jun '19
  • University of West London
    Undergraduate Open Day - West London Campus Undergraduate
    Wed, 19 Jun '19
  • University of Warwick
    Undergraduate Open Day Undergraduate
    Fri, 21 Jun '19

How did your AQA A-level Biology Paper 2 go?

Loved the paper - Feeling positive (425)
18.67%
The paper was reasonable (1076)
47.28%
Not feeling great about that exam... (505)
22.19%
It was TERRIBLE (270)
11.86%

Watched Threads

View All