How to display an equation in MATLAB?
104 views (last 30 days)
Prabhanjan Mentla on 27 Nov 2020
As dbp suggested, you could use directly use equation in msgbox. However, sprintf inside the msgbox could be used something like below.
h = msgbox(sprintf('The equation is y=%dx+%d', m, c));
For more information on msgbox, you may refer to below links.
Hope this helps.