Clear Filters
Clear Filters

How to draw a linear regression plot?

2 views (last 30 days)
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

Accepted Answer

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

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!