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 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