Estimate the common logarithm of 10 using linear interpolation.
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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.
0 commentaires
Réponse acceptée
Oleg Komarov
le 6 Avr 2012
step = 0.1;
log10(8:step:12)
3 commentaires
Oleg Komarov
le 7 Avr 2012
Be aware it's linear interpolation:
p(1) + diff(p)/2 % midpoint
gives the same result as your example above.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Interpolation dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!