Is there a way of getting displayFormula to print multiplication (×) symbols in an equation?

4 次查看(过去 30 天)
Example code:
syms a b
strEquation = "a*b";
displayFormula(strEquation)
Live editor output:
a b
Desired ouput:
a × b
I realise there may be a text based way of achieving this with the simple example above, but I'd ideally like it to work for larger, more complex formulae, whilst retaining the formatting style of displayFormula.

回答(1 个)

VBBV
VBBV 2022-12-2
syms a b
strEquation = "a*b";
disp(strEquation)
a*b
  4 个评论

请先登录,再进行评论。

类别

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