symbolic, Newton Polynoms, avoid multiplication, latex

1 次查看(过去 30 天)
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)

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by