How to display an equation in MATLAB?

17 次查看(过去 30 天)
How do i display an equation in msgbox or in other way?

回答(1 个)

Prabhanjan Mentla
Prabhanjan Mentla 2020-11-27
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.

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by