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

12 views (last 30 days)
Example code:
syms a b
strEquation = "a*b";
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.

Answers (1)

VBBV on 2 Dec 2022
syms a b
strEquation = "a*b";

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!