help-octave
[Top][All Lists]
Advanced

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

Re: Some multi dimensional matrix problem


From: Leloup
Subject: Re: Some multi dimensional matrix problem
Date: Sun, 16 Sep 2018 10:34:38 -0500 (CDT)

Bonjour,

I am not sure to understand what you want to do    

m = 10,n=8
Data = rand(m,n)

for j=1:8;
     y=Data(:,j);
     X=[ones(m,1),Data(:,j)]
     theta=round(pinv(X'*X)*X'*y)
end

Leloup



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

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