Info

This question is closed. Reopen it to edit or answer.

No error but no outcome as well

1 view (last 30 days)
Stelios Fanourakis
Stelios Fanourakis on 17 Sep 2017
Closed: MATLAB Answer Bot on 20 Aug 2021
for k=1:D
P_pred = A(:,k) * P(:,k) * A(:,k)' + Q(:,k);
D(:,k) = P(:,k) * A(:,k)' / P_pred;
M(:,k) = M(:,k) + D(:,k) * (M(:,k+1) - A(:,k) * M(:,k));
P(:,k) = P(:,k) + D(:,k) * (P(:,k+1) - P_pred) * D(:,k)';
end
plot(D:M:P);
It does show nothing. No error but not outcome either. What's wrong? I am not getting the plot I am supposed to.
  2 Comments
Stephen23
Stephen23 on 17 Sep 2017
Edited: Stephen23 on 17 Sep 2017
@Stelios Fanourakis: what do you expect
D:M:P
to do? Did you read the colon documentation?

Answers (0)

This question is closed.

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!