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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!