How to display an equation in MATLAB?

How do i display an equation in msgbox or in other way?

답변 (1개)

Prabhanjan Mentla
Prabhanjan Mentla 2020년 11월 27일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 App Building에 대해 자세히 알아보기

태그

질문:

2020년 11월 24일

답변:

2020년 11월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by