필터 지우기
필터 지우기

Mean automation from excel data

조회 수: 1 (최근 30일)
Yogesh T L
Yogesh T L 2016년 4월 8일
댓글: Yogesh T L 2016년 4월 8일
Hi, Let's say we have the following data, and I would like to obtain the mean of pressure for speed 20 only. Then I am also interested to obtain mean for speeds 40 only, 60 only... I am using excel for this but matlab would be a better option for automation from my opinion as the data is huge.Thank you.
  댓글 수: 2
Muhammad Usman Saleem
Muhammad Usman Saleem 2016년 4월 8일
can you add your sample excel file please? I want to check repeatition
Yogesh T L
Yogesh T L 2016년 4월 8일
I am not able to understand what you mean by repetition because it varies each time I conduct the experiment. It's a big spreadsheet in excel and I am not willing to share the entire experimental data. Please don't hesitate to request for further details.

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

채택된 답변

Andrei Bobrov
Andrei Bobrov 2016년 4월 8일
ps = xlsread('yourdata.xlsx');
[speed,~,c] = unique(ps(:,2));
pressure_mean = accumarray(c,ps(:,1),[],@mean);
out = [pressure_mean, speed];

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by