symbolic, Newton Polynoms, avoid multiplication, latex

조회 수: 1 (최근 30일)
Uwe Brauer
Uwe Brauer 2018년 2월 17일
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