How to display an equation in MATLAB?
3 views (last 30 days)
Show older comments
How do i display an equation in msgbox or in other way?
Answers (1)
Prabhanjan Mentla
on 27 Nov 2020
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.
0 Comments
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!