Hi everyone,
I'm having two data sets with same x values. Like this. x=[1 2 3 4]; y1=[188 184 198 288]; y2=[168 168 216 290];
I need to get one data set as (x,y). How can I do that. Pls help me.
Thanx in advance!!

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 2월 25일

0 개 추천

Maybe you need to take the mean
y1=[188 184 198 288];
y2=[168 168 216 290]
y=mean([y1;y2])

댓글 수: 2

Uvindu
Uvindu 2013년 2월 27일
well, solved it. thnx Azzi Abdelmalek :)
Stelios Fanourakis
Stelios Fanourakis 2019년 10월 29일
편집: Stelios Fanourakis 2019년 10월 29일
Did it work with the mean? How did you solve it? I face similar problem

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

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Interpolation에 대해 자세히 알아보기

질문:

2013년 2월 25일

편집:

2019년 10월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by