Skip to content

Commit

Permalink
added matlab GLDS method for save_params (#23)
Browse files Browse the repository at this point in the history
Co-authored-by: mfbolus <mfbolus>
  • Loading branch information
mfbolus authored May 4, 2021
1 parent 13c4d85 commit a8338bd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions matlab/@GLDS/save_params.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
function [] = save_params(this, savename, qM)
% [] = save_params(this, savename, qM)

dt = this.dt;
A = this.A;
B = this.B;
g = this.g;
m = this.m;
C = this.C;
d = this.d;
x0 = this.x0;

% calculate the steady state Kalman gains.
if isempty(this.K)
this.calcK_steadyState();
end
Ke = this.K;
Ke_m = this.calcKm_dual_steadyState(qM);

save(savename, '-v7.3', 'dt', 'A', 'B', 'g', 'm', 'C', 'd', 'x0', 'Ke', 'Ke_m');
end

0 comments on commit a8338bd

Please sign in to comment.