I'm getting the following error how can I fix it
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Amjad Mattar
le 20 Déc 2020
Réponse apportée : Rishabh Mishra
le 24 Déc 2020
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/466205/image.png)
2 commentaires
Walter Roberson
le 20 Déc 2020
The yellow bar is a mux that is merging at least four values into a signal. You then use the entire composite signal as input to + of noise. You cannot do that: you have to + individual signals, not composite signals.
Paul
le 20 Déc 2020
Adding the output of the mux with scalar output of the Random Number block is perfectly acceptable in and of itself (though perhaps not the right thing to do for this model).
Can't say for sure what the problem is here without more information, like the dimensions of the A,B,C,D matrices in the Kalman block and the dimensions of the gain in the -K*u block.
Having said that, I'm going to hazard a guess that only one of x, xdot, theta, or thetadot should added with the Random Number to form the noisy measurement.
Réponse acceptée
Rishabh Mishra
le 24 Déc 2020
Hi,
Based on my understanding of the model, the error occurs when execution of the model starts. At first time step, t = 0, the sum block
requires 2 inputs. The input coming from the Mux block is calculated from output given by the sum block itself, this creates a kind of loop where output of sum block depends upon input given to it and that causes the error to be reported.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/470027/image.png)
Hope this helps.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Sources dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!