How to integrate integrate by using loop

I have tried several hours to run that correctly but I could not. Here what I need substitute two equations to came with one equation, then integrate it by using loop. I have wrote this example to get the idea of what I'm looking.

Antworten (2)

Torsten
Torsten am 22 Mai 2017

0 Stimmen

Use MATLAB's "dsolve".
Best wishes
Torsten.
Jan
Jan am 22 Mai 2017

0 Stimmen

Please post the code you have so far and explain, which problem occurres. Then suggesting an improvement is much easier.
What exactly does "integrate by loop" mean? Do you mean an Euler method, a trapezoid sum, the Simpson rule?
There is an uppercase C in the equation, but a lowercase c in the constants. h1 is defined twice, h2 is missing. t1 and t2 do both equal 0, therefore the integral must be 0 also.
Please, Mahome, take the time and post the correct values as text. Screenshots are less useful, because we cannot use them by copy&paste to suggest a solution. Based on the given information, I guess boldly that your code might work already, if you fix the typos concerning the constants.

Kategorien

Mehr zu Programming finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 22 Mai 2017

Beantwortet:

Jan
am 22 Mai 2017

Community Treasure Hunt

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

Start Hunting!

Translated by