Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I get a length of vector in Simulink?

2,929 views
Skip to first unread message

Hyon Lim

unread,
Oct 1, 2009, 3:48:01 AM10/1/09
to
If the output of some block is

[6 3 4]

I would like to count that element (e.g., 3).

Do you recommend any block?

To summarize,

Input : [6 3 4]
Output : 3 (integer)

Arnaud Miege

unread,
Oct 1, 2009, 7:19:29 AM10/1/09
to

"Hyon Lim" <al...@alexlab.net> wrote in message
news:ha1mrh$444$1...@fred.mathworks.com...

Look at the probe block:
http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/probe.html

HTH,

Arnaud


0 new messages