Save data in a vector

3 vues (au cours des 30 derniers jours)
Sam136
Sam136 le 10 Mai 2016
Modifié(e) : Sam136 le 10 Mai 2016
In simulink, I need to have a block that does the following:
function y = fcn(u)
if u==M
put M as the first variable of a vector
put upcoming values as the next values in the vector
y=vector (when u is equal to M again)
end
Could you please help me with this?

Réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by