How to draw a linear regression plot?

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by