How to draw a linear regression plot?

1 回表示 (過去 30 日間)
Nazila Pourhajy
Nazila Pourhajy 2021 年 10 月 14 日
コメント済み: Nazila Pourhajy 2021 年 10 月 14 日
Hi everyone.
I trained LSTM network for forecasting price.I want to draw a plot like the one below for the actual and predicted values and get R-Squared value. Which command can I use to do this?Please help me.Thanks

採用された回答

Kevin Holly
Kevin Holly 2021 年 10 月 14 日
You can use fitlm.
  1 件のコメント
Nazila Pourhajy
Nazila Pourhajy 2021 年 10 月 14 日
But when I use this command to plot;I get this result as below:
Do you know,why?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by