Does Matlab solver allow integration?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
CD
el 5 de Feb. de 2021
Respondida: Robert U
el 5 de Feb. de 2021
I know how to use the solver to solver an ode:
% L*diL/dt = -R*iL
syms iL(t) R L Vo
cond = iL(0) == Vo/R
ode = diff(iL,t) == -(R/L)*iL;
iLSol(t) = dsolve(ode, cond)
How does one do something similar for integration?
I do not want a single value but rather an equation:
This is the setup:
syms t L R Vo
WR = R*((Vo/R)*exp(-t/(L/R)))^2, ideally integrate from 0 to Inf.
I just do not understand the "symbolic integration" syntax (assuming that it exists).
Thank you.
0 comentarios
Respuesta aceptada
Robert U
el 5 de Feb. de 2021
Hi Craig Dekker,
syms t L R Vo
WR = R*((Vo/R)*exp(-t/(L/R)))^2
iWR = int(WR,t,0,inf);
In order to have an appealing result:
pretty(iWR)
Kind regards,
Robert
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Number Theory 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!