フィルターのクリア

How to display an equation in MATLAB?

4 ビュー (過去 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 件のコメント
dpb
dpb 2020 年 11 月 24 日
How about
msgbox('y=mx+b')
?

サインインしてコメントする。

回答 (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 Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by