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

2 ビュー (過去 30 日間)
Leonardo Vettore
Leonardo Vettore 2016 年 7 月 13 日
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 件)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by