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

how to add vectors with Simulink blocks ?

1,172 views
Skip to first unread message

bartolo@fredy

unread,
Jun 7, 1994, 8:22:43 PM6/7/94
to
Subject: how to add vectors with Simulink ?

Hhumm...

Is there any block in Simulink to ADD (or substract) two (or more) VECTORS,
like the Sum block for scalars ? If not, is it possible to create it ?
The way to Demux the vector then to use the Sum block for scalar, then to Mux,
is not clean.

In the same way, how to visualize TWO lines (from a vector) with a GRAPH SCOPE,
like one line from a scalar with the standard Graph Scope ?

Many thanks to the one who could help me !


BARTOLO Cyril
C.N.R.S. (National Center for Scientific Research)
Email: bar...@r2d2.iaf.cnrs-gif.fr

Gary Levenson

unread,
Jun 7, 1994, 9:01:39 AM6/7/94
to
In article <1994Jun7.142243.1@fredy>, bartolo@fredy wrote:


> Is there any block in Simulink to ADD (or substract) two (or more) VECTORS,
> like the Sum block for scalars ? If not, is it possible to create it ?
> The way to Demux the vector then to use the Sum block for scalar, then to Mux,
> is not clean.
>
> In the same way, how to visualize TWO lines (from a vector) with a GRAPH SCOPE,
> like one line from a scalar with the standard Graph Scope ?
>

The Sum block in SIMULINK 1.3 supports both scalar and vector summation as
well as a "summation mode", which adds the elements of a single input
vector.

The Graph Scope in SIMULINK 1.3 allows multiple lines to be plotted
simultaneously.

Hope this helps...

-Gary

== Gary Levenson ============================= ga...@mathworks.com =======
The MathWorks, Inc. in...@mathworks.com
24 Prime Park Way http://www.mathworks.com
Natick, MA 01760-1500 ftp.mathworks.com
===Tel: 508-653-1415 === Fax: 508-653-2997===============================

0 new messages