How to display an equation in MATLAB?

Answers (1)

Hi,
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.

Categories

Find more on App Building in Help Center and File Exchange

Asked:

on 24 Nov 2020

Answered:

on 27 Nov 2020

Community Treasure Hunt

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

Start Hunting!