필터 지우기
필터 지우기

Average curve for a set of curves

조회 수: 13 (최근 30일)
AAA
AAA 2013년 8월 25일
댓글: Lukas Krupa 2018년 8월 15일
Hi everyone,
I have done some mechanical tests and obtained stress strain curves for 5 specimen made out of the same material. I have got XY data (X values vary for each specimen). How can I produce an average curve in this case?

답변 (2개)

Shashank Prasanna
Shashank Prasanna 2013년 8월 26일
If X is the same for each experiment then you just have to
>> Yavg = mean([Y1 Y2 Y3 Y4 Y5],2); % assuming Ys are column vectors
If not define a desired X = Xavg
Y1avg = interp1(X1,Y1,Xavg);
Y2avg = interp1(X2,Y2,Xavg);
.
.
Y5avg = interp1(X5,Y5,Xavg);
% Compute the average of Y for the Xavg
Yavg = mean([Y1avg Y2avg ... Y5avg],2); % assuming Ys are column vectors
  댓글 수: 1
Lukas Krupa
Lukas Krupa 2018년 8월 15일
What is your Xavg here? How did you get it?

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


Laurent
Laurent 2013년 8월 25일
Maybe you can use interpolation (help interp has an example) to generate Y data for a common set of X points, based on your original Y data? Then you can do a simple mean on your set of Y data.

카테고리

Help CenterFile Exchange에서 Stress and Strain에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by