how to set up a function involving integrals integral bounds
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I'm trying to set up a function that looks like
where a is a constant.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/698482/image.png)
how can I do this? when I try using the following code, it tells me that "Limits of integration must be double or single scalars."
Many thanks!
syms f(x)
f(x) = integral(fun,a,x);
0 commentaires
Réponse acceptée
Steven Lord
le 29 Juil 2021
The integral function is for numeric integration.
The int function is for symbolic integration.
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!