Simulink: select element from a vector in relation with the current time
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!