Hi,
I tried both vpaintegral() and integral() to integrate from 0 to 10.
integral() correctly returned 83.3333, but vpaintegral() strangely returned 333.333.
I don't know why this happened. Maybe there's a bug in vpaintegral()?
Any help is much appreciated.
Thank You in advance.
Code:
syms t realg(t) = (mod(t,5))^2fplot(g, [0 10])vpaintegral(g, t, 0, 10)g_mf = matlabFunction(g, 'vars', {t})integral(g_mf, 0, 10)
Best Answer