help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Polyfit with three variable


From: Doug Stewart
Subject: Re: Polyfit with three variable
Date: Sun, 20 Dec 2020 09:54:32 -0500



On Sun, Dec 20, 2020 at 8:16 AM swagata Mukherjee <swagata123456@gmail.com> wrote:
Hi,
The files are attached.

Regards,
Swagata

On Sun, Dec 20, 2020 at 5:57 PM Doug Stewart <doug.dastew@gmail.com> wrote:


On Sun, Dec 20, 2020 at 7:13 AM swagata Mukherjee <swagata123456@gmail.com> wrote:
Hi,
I need help with linear regression with three variables.

I was running the following code:
   N_Liner=1; 
    P_Liner=polyfit(G,Temp,I_PV,N_Liner)

getting the following error "error: polyfit: N must be a non-negative integer".

Is there any way out?

Regards,
Swagata

Show us what these values are.
G
Temp
I_PV
N_Liner

--
DASCertificate for 206392

If you look at the help for polyfit:
help polyfit

You will see that your inputs to polyfit are wrong. 
 you should give it the x and y values and the deg. of polynomial that you want.


--
DASCertificate for 206392


reply via email to

[Prev in Thread] Current Thread [Next in Thread]