how to plot the mean of values from swept data

1 view (last 30 days)
Em
Em on 17 Nov 2020
Commented: Em on 18 Jan 2021
Hi everyone,
I have a array of data where I ramped one variable and measured another a number of times. I would like to find the average of the independent variable at each data point in order to plot this. Does anyone have any suggestions on how I could do this?
Cheers!
Em

Accepted Answer

Cris LaPierre
Cris LaPierre on 17 Nov 2020
Sure. Use groupsummary. Your grouping variable is your dependent variable, your method is 'mean', and your datavar is your independent variable.
Take the results and plot.
  11 Comments
Em
Em on 18 Jan 2021
This is exactly what I was looking for, thank you!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!