How to display an equation in MATLAB?

조회 수: 20 (최근 30일)
sohail quadri
sohail quadri 2020년 11월 24일
답변: Prabhanjan Mentla 2020년 11월 27일
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에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by