Your equation has the following analytic solution (assuming Xa is a constant):
You can plug in the known values for S0 (ie. the value of S at time t=0) and the values for t = tend and S at t=tend, then rearrange to get Xa.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!