How to draw a linear regression plot?

1 Ansicht (letzte 30 Tage)
Nazila Pourhajy
Nazila Pourhajy am 14 Okt. 2021
Kommentiert: Nazila Pourhajy am 14 Okt. 2021
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

Akzeptierte Antwort

Kevin Holly
Kevin Holly am 14 Okt. 2021
You can use fitlm.
  1 Kommentar
Nazila Pourhajy
Nazila Pourhajy am 14 Okt. 2021
But when I use this command to plot;I get this result as below:
Do you know,why?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Linear and Nonlinear Regression finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by