I want to do an integral and only have the initial function for it. Assuming a y function, it is in this way: y=integration (over the range of 0 to t) of (derivation of y with respect to distance) dt and suppose initial condition is a constant number. I am going to write it as a summation of the areas by time steps(n steps) to get the final equation as a result of integral. Do you have any suggestion that how can I make it works in MATLAB? Thanks for you time and help
MATLAB: How can I write a code to solve an integral (from 0 to t) which only has the initial function (at t=0)
numerical integration
Best Answer