Warning: Reached the limit on the maximum number of intervals in use. Approximate bound on error is 1.9e+04. The integral may not exist, or it may be difficult to approximate numerically to the requested accuracy.
@Aditya Zade, if you plot the integrand function, you can see the oscillatory singularities (division-by-zero) repeat at regular intervals along the time-axis.
Hi @Sam Chak, thank you for the clarification. However, I am trying to integrate from t=0 to t=1/360 where the function is continuous. So, I thought I could integrate it.
Mathematica also produced the same result as MATLAB. You can follow the example provided by @Walter Roberson. The integrand function is likely intended to differ from yours to encourage you to learn how to write the code independently.
This will reinforce your memory in learning how to calculate definite integrals (the area under a curve between two fixed limits) in MATLAB.
If you attempt to solve a mathematical equation or an integral problem using functions from the Symbolic Math Toolbox, the answers will be returned as symbolic expressions.
Impossibile completare l'azione a causa delle modifiche apportate alla pagina. Ricarica la pagina per vedere lo stato aggiornato.
Translated by
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.