integration within specified limits

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

 Respuesta aceptada

Walter Roberson
Walter Roberson el 16 de Feb. de 2021
data = readmatrix('Data.xlsx');
mask = data(:,1) >= 3 & data(:,1) <= 6;
t = data(mask,1);
x2 = data(mask,2).^2;
trapz(t, x2)

Más respuestas (0)

Categorías

Más información sobre Computer Vision Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 16 de Feb. de 2021

Comentada:

el 18 de Feb. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by