Summation of table imported from excel
조회 수: 1 (최근 30일)
이전 댓글 표시
Luis Eloy García-Mauriño Rey
2020년 4월 26일
댓글: Luis Eloy García-Mauriño Rey
2020년 4월 27일
So I have a table which was imported to matlab from an excel document. The table has 3 columns: Crankshaft angle, Volume, Pressure. I need to do a summation following this formula
The table has 720 rows of data.
댓글 수: 0
채택된 답변
Mrutyunjaya Hiremath
2020년 4월 27일
% Assuming xls data strored in variabl 'data'
% colum 1 is Angle, colum 2 is Volume, colum 3 is Pressure
Win = 0;
for i = 2:720
Win0 = ((data(i,3) + data(i-1,3)) * (data(i,2) - data(i-1,2)))/2;
Win = Win + Win0;
end
disp(Win)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Descriptive Statistics에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!