How to display an equation in MATLAB?
이전 댓글 표시
How do i display an equation in msgbox or in other way?
댓글 수: 1
dpb
2020년 11월 24일
How about
msgbox('y=mx+b')
?
답변 (1개)
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.
카테고리
도움말 센터 및 File Exchange에서 App Building에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!