How to display an equation in MATLAB?

28 vues (au cours des 30 derniers jours)
sohail quadri
sohail quadri le 24 Nov 2020
How do i display an equation in msgbox or in other way?
  1 commentaire
dpb
dpb le 24 Nov 2020
How about
msgbox('y=mx+b')
?

Connectez-vous pour commenter.

Réponses (1)

Prabhanjan Mentla
Prabhanjan Mentla le 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.

Catégories

En savoir plus sur Characters and Strings dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by