From 033fdd77a94fba5165c4dda9b8b202b1f131b1c7 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 15 Mar 2023 19:57:59 +0100 Subject: [PATCH] p3(lrls): redo how explicit works --- p3/lrls/arx.go | 2 +- p3/lrls/explicit.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 {