Graphing the result of a regression in Matlab

조회 수: 1 (최근 30일)
S Coogan
S Coogan 2012년 12월 7일
Hi,
The results of my regression are as follows:
xt = 0.001 + 0.49xt-1 + 0.046yt + 0.11zt
I am trying to draw a simple graph to show these results. I have tried using explot and polyval/polyfit, but I can't get it to work out.
Any suggestions?
Many thanks.
  댓글 수: 1
Image Analyst
Image Analyst 2012년 12월 7일
Are xt, yt, and zt arrays where t is time and so they are arrays where each element is a different time point? Why is xt on both sides of the equation? Or is it really something like this:
x(t) = 0.001 + 0.49 * x(t - 1) + 0.046 * y(t) + 0.11z(t)
and you have this in a loop over t so that a given x depends on the prior x element and the current y and z elements? Can you supply typical values for x(1), and yt and zt?

댓글을 달려면 로그인하십시오.

답변 (1개)

Muthu Annamalai
Muthu Annamalai 2012년 12월 7일
You are missing all the '*' product signs between your polynomial coefficients and the variable; wrong MATLAB syntax doesn't get you what you want.
You probably want to read a MATLAB tutorial.

카테고리

Help CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by