Simulink: select element from a vector in relation with the current time
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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?
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Sources finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!