I do not know if its a symsum function i have to use

1 次查看(过去 30 天)
The operation i have to make it is in the attached file

采纳的回答

Walter Roberson
Walter Roberson 2019-4-24
编辑:Walter Roberson 2019-4-24
It looks to me as if it is likely that q and t represent vectors that are being indexed. You cannot use symsum() to index a vector. Instead use,
N = n+1;
j = (1:n) + 1;
XF = sum((q(j) - q(j-1)) / q(N) .* log(t(N) - t(j-1)));
The N = n+1 instead of n is present because the formula uses j = 1 : n and which would be when j = 1. MATLAB cannot index by 0, so we need to add 1 to each subscript.
Your tags mention integration, but this does not look like integration to me -- not unless it is Reimann integral of log(t_n - t) with independent variable stored in q ? Trapazoid calculations are generally more accurate than Reimann integral.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by