Effacer les filtres
Effacer les filtres

Simulink: select element from a vector in relation with the current time

1 vue (au cours des 30 derniers jours)
Leonardo Vettore
Leonardo Vettore le 13 Juil 2016
I'm new to Simulink I have a long vector and I want to select one single element for every time (sampled every five seconds).
For example if I have a vector V = [100 2 192 18 5 ...] I want to select at times t=1, t=2, t=3, t=4, t=5 the element V[1] = 100, at time t=6, t=7, 7=8, t=9, t=10 the element V[6] = 2, and so on.
Is there a block or a set of block to do so? And what options should I use?

Réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by