Plot mean as a green line width of 3

조회 수: 13 (최근 30일)
timetry2
timetry2 2019년 10월 1일
댓글: timetry2 2019년 10월 1일
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

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 10월 1일
편집: KALYAN ACHARJYA 2019년 10월 1일
This?
subplot (3,4,1),plot (y,'g','linewidth',3);
I assumed y as a mean
  댓글 수: 3
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 10월 1일
Can you show me, how you calculate mean of the that signal? (Maths?)
timetry2
timetry2 2019년 10월 1일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by