Plot mean as a green line width of 3

I have a line of code that looks like this
figure
y =Data.StrideTimeIntervals_15minTrial.PD(:,1);
subplot (3,4,1),plot (y)
title ('PD 1')
xlabel ('ISI #')
ylabel ('ISI (s)')
axis ([0,500,0.8,1.2])
And I'm wondering how to plot the mean line through the graph in the color green with a width of 3

Answers (1)

This?
subplot (3,4,1),plot (y,'g','linewidth',3);
I assumed y as a mean

3 Comments

Yes, I need Y to be a mean but I need it to be a seperate line than the graph I have. So, the graph I have already looks like the below. And, I need to add a mean line in the color green and width 3. pd1.PNG
Can you show me, how you calculate mean of the that signal? (Maths?)
Sorry I am unsure, however, the data I am getting is from this website https://www.sciencedirect.com/science/article/abs/pii/S0966636218316667? and it is under supplementary Data, and it should be a matlab file that downloads to give you the same data I am looking at.

Sign in to comment.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Asked:

on 1 Oct 2019

Commented:

on 1 Oct 2019

Community Treasure Hunt

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

Start Hunting!