How can I Integrate on an array with respect to another array
31 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Aman Kumar
el 26 de Mzo. de 2024
Comentada: Aman Kumar
el 26 de Mzo. de 2024
I want to integrate an array which is, acceleration, with respect to another array, which is time to get velocity, then integrate the velocity array with respect to time again to position. Does anyone know how I can do this? Any help will be appreciated thanks.
0 comentarios
Respuesta aceptada
Steven Lord
el 26 de Mzo. de 2024
5 comentarios
Steven Lord
el 26 de Mzo. de 2024
When I say "data sets" and "functions" I mean variables and function handles.
Integrating data:
x = 1:10;
y = x.^2;
integrateDataSet1 = trapz(x, y)
integrateDataSet2 = cumtrapz(x, y)
Integrating functions:
f = @(x) x.^2;
integrateFunction = integral(f, 1, 10)
Más respuestas (0)
Ver también
Categorías
Más información sobre Numerical Integration and Differentiation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!