How to display equation of the line in the figure?
35 ビュー (過去 30 日間)
古いコメントを表示
I need to indicate the corresponding equations of the lines within the figure. How to do this? Please look at the attached file.
0 件のコメント
回答 (2 件)
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
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
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()
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!