area under a curve ?

1 visualización (últimos 30 días)
amalina ibrahim
amalina ibrahim el 9 de Jun. de 2021
Comentada: Sulaymon Eshkabilov el 16 de Jun. de 2021
  1 comentario
amalina ibrahim
amalina ibrahim el 9 de Jun. de 2021
can anyone help me the exact coding for area under a curve ?

Iniciar sesión para comentar.

Respuesta aceptada

Sulaymon Eshkabilov
Sulaymon Eshkabilov el 9 de Jun. de 2021
This plot is from Simulink Scope as shown here. You'd need to get the data imported into MATLAB woskpace, select the necessary region of the imported data and then perform summation with trapz().
  3 comentarios
amalina ibrahim
amalina ibrahim el 16 de Jun. de 2021
thank you for giving me an idea. it helps me a lot
Sulaymon Eshkabilov
Sulaymon Eshkabilov el 16 de Jun. de 2021
Most welcome!

Iniciar sesión para comentar.

Más respuestas (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov el 9 de Jun. de 2021
Use trapz() that gives you the numerical integration under the curve.
  1 comentario
amalina ibrahim
amalina ibrahim el 9 de Jun. de 2021
i dont really understand how to apply it. mind to share ?

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by