diff --git a/p3/lrls/arx.go b/p3/lrls/arx.go index 1c50c52..db696b0 100644 --- a/p3/lrls/arx.go +++ b/p3/lrls/arx.go @@ -30,7 +30,7 @@ func Estimate(eMethod int, u, y []float64) ([][]float64, []float64, error) { switch method { case methodExplicit: - theta, errs, err = explicit() + err = explicit() case methodRecursive: theta, errs, err = recursive(u, y) diff --git a/p3/lrls/explicit.go b/p3/lrls/explicit.go index 8e0244d..e72fa50 100644 --- a/p3/lrls/explicit.go +++ b/p3/lrls/explicit.go @@ -5,15 +5,15 @@ import ( "os/exec" ) -func explicit() ([][]float64, []float64, error) { +func explicit() error { err := runExplicitMatlab() if err != nil { - return nil, nil, err + return err } // TODO: read data processed and saved by matlab and return that. - return nil, nil, nil + return nil } func runExplicitMatlab() error {