How to display two equations: one with dummy vars AND one with actual var values showing

I am trying to display (1) an equation with dummy variables followed by (2) the same equation with actual workspace variable values substituted for the dummy variables. In other words, a lead-in to how the final value was arrived at.
I can accomplish (1) by using an "Evaluate MatLab Expression" component to create a figure with a text(str) line where "str" is the LaTex code for my dummy equation. (axes are hidden)
Unfortunately, this method doesn't seem to recognize %<var> expressions so I can't use it to accomplish (2).
I am looking for a text solution if possible to do (1) and (2).
Any help would be most appreciated!

Answers (0)

This question is closed.

Asked:

on 27 Apr 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!