Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LRT_infinite_dimensional_systems
conI
Commits
703ce62c
Commit
703ce62c
authored
Dec 10, 2019
by
Ferdinand Fischer
Browse files
allow the trajectory planning to start from time steps that are not zero
parent
af5f40ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
+misc/+ss/planTrajectory.m
View file @
703ce62c
...
...
@@ -20,13 +20,11 @@ p.parse(varargin{:});
x0
=
p
.
Results
.
x0
;
x1
=
p
.
Results
.
x1
;
% prepare time vectors
t
=
t
(:);
t0
=
t
(
1
);
t1
=
t
(
end
);
if
~
numeric
.
near
(
t0
,
0
)
warning
(
'Not yet tested for non zero initial conditions'
);
end
%% Compute the state transition matrix: Phi(t,tau) = expm(A*(t-tau) )
% Att0 = sys.A * quantity.Symbolic( sym('t') - sym('tau'), 'grid', {t, t}, 'gridName', {'t', 'tau'} );
Phi_t0
=
expm
(
sys
.
A
*
quantity
.
Discrete
(
t
-
t0
,
'grid'
,
{
t
},
'gridName'
,
{
't'
}
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment