Selecting the last element in a vector

16 ビュー (過去 30 日間)
bethel o
bethel o 2021 年 1 月 28 日
回答済み: bethel o 2021 年 1 月 28 日
In Simulink, without typing Matlab code or using multiple blocks, How can I select the last element of a vector/multi-channel signal?
E.g if I have [1;2;3;4] and easily select the first and the rest i.e [1] and [2,3,4] using a Demux. But how can I instead split it thus: [1,2,3] and [4]. I may be missing something quite basic?

回答 (1 件)

bethel o
bethel o 2021 年 1 月 28 日
OK, got it, Multiport Selector will do just that; I haven't used Simulink in a while.

カテゴリ

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

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by