Re: Polyfit with three variable
Doug Stewart <[email protected]>
| Newsgroups | gmane.comp.gnu.octave.general |
|---|---|
| Message-ID | <CAAohRsbLCiRnHmUhu670HFCvVWEYyeTTQBAmSVPM009jwvu5pQ@mail.gmail.com> |
On Sun, Dec 20, 2020 at 8:16 AM swagata Mukherjee <[email protected]> wrote: > Hi, > The files are attached. > > Regards, > Swagata > > On Sun, Dec 20, 2020 at 5:57 PM Doug Stewart <[email protected]> > wrote: > >> >> >> On Sun, Dec 20, 2020 at 7:13 AM swagata Mukherjee < >> [email protected]> 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 >> >> -- >> DAS[image: Certificate for 206392] >> >> <https://linuxcounter.net/user/206392.html> >> > 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. -- DAS[image: Certificate for 206392] <https://linuxcounter.net/user/206392.html>