I have the data file attached below. I have to take the square of column no. two of this data file and then have to integrate it from time '3' sec to time '6' sec. Please help me out with this.
Thanks in advance

 채택된 답변

Walter Roberson
Walter Roberson 2021년 2월 16일

0 개 추천

data = readmatrix('Data.xlsx');
mask = data(:,1) >= 3 & data(:,1) <= 6;
t = data(mask,1);
x2 = data(mask,2).^2;
trapz(t, x2)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기

질문:

2021년 2월 16일

댓글:

2021년 2월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by