フィルターのクリア

How to display equation of the line in the figure?

7 ビュー (過去 30 日間)
suvadip paul
suvadip paul 2013 年 10 月 4 日
コメント済み: Muhammed 2022 年 12 月 24 日
I need to indicate the corresponding equations of the lines within the figure. How to do this? Please look at the attached file.

回答 (2 件)

GILBERT ALVIOLA
GILBERT ALVIOLA 2017 年 7 月 24 日
編集済み: Walter Roberson 2017 年 7 月 24 日
txt1 = ['y = (' num2str(m) ')x + (' num2str(a) ')'];
text(x, y, txt1);
  2 件のコメント
Leela Sai Krishna
Leela Sai Krishna 2019 年 5 月 20 日
編集済み: Leela Sai Krishna 2019 年 5 月 20 日
It works. Thanks for your response.
This text is added along the fitline. how to add this text at topleft.
Thanks in advance
Muhammed
Muhammed 2022 年 12 月 24 日
olmamış beğendim

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


Walter Roberson
Walter Roberson 2013 年 10 月 4 日
text() the equation into place if you need to have the equation show up in the main figure axis.
Consider instead using legend()

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by