Save data in a vector

3 visualizzazioni (ultimi 30 giorni)
Sam136
Sam136 il 10 Mag 2016
Modificato: Sam136 il 10 Mag 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?

Risposte (0)

Categorie

Scopri di più su Simulink in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by