symbolic, Newton Polynoms, avoid multiplication, latex

1 vue (au cours des 30 derniers jours)
Uwe Brauer
Uwe Brauer le 17 Fév 2018
Hi I have the following code
C=[0.46 -0.12]
X=[3 2]
syms x
new=C(1)+C(2)*(x-X(1))
latex(new)
that should be a Interpolation polynom using Newtons diveded difference. However Matlab alway performs the multiplation operation. resulting in
41/50 - (3*x)/25
what sort of function could I use which would work later with the latex command. I obtain
\frac{41}{50} - \frac{3\, x}{25}
but I want of course
0.46- 0.12(x-3)

Réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox 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!

Translated by