Integration of a vector function
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
James Tate
am 7 Okt. 2020
Beantwortet: Star Strider
am 7 Okt. 2020
I attached a picture of the integration that i need to do, I have tried the trapz and cumtrapz functions but I can not get them to do the definite integral of these functions, they also do not find the correct integrated values from the equation. I have also tried to integrate each one individually and use the bounds from 0 to 4, and add them back together. This does not work because it can't integrate the number by itself. Thanks for your help.
0 Kommentare
Akzeptierte Antwort
Star Strider
am 7 Okt. 2020
Perhaps:
Result = integral(@(t) sin(t).*[1 0 0] + 6*[0 1 0] + 4*t*[0 0 1], 0, 4, 'ArrayValued',1)
That runs without error, and produces:
Result =
1.6536 24 32
.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!