How to interpolate two data sets

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!!

 采纳的回答

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

2 个评论

well, solved it. thnx Azzi Abdelmalek :)
Did it work with the mean? How did you solve it? I face similar problem

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Interpolation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by