Estimate the common logarithm of 10 using linear interpolation.

5 次查看(过去 30 天)
Interpolate between log 8 = 0.9030900 and log 12 = 1.0791812.
I just learned using Matlab and suddenly got this question to do in Matlab. Can someone help me? Your help is really needed and very appreciated.

采纳的回答

Oleg Komarov
Oleg Komarov 2012-4-6
step = 0.1;
log10(8:step:12)
  3 个评论
Oleg Komarov
Oleg Komarov 2012-4-7
Be aware it's linear interpolation:
p(1) + diff(p)/2 % midpoint
gives the same result as your example above.

请先登录,再进行评论。

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by