Path: news.mathworks.com!not-for-mail
From: "Ashwini Deshpande" <vd.ashwini@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Simple simulink problem
Date: Wed, 21 Oct 2009 06:19:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 13
Message-ID: <hbm94m$9bn$1@fred.mathworks.com>
Reply-To: "Ashwini Deshpande" <vd.ashwini@mathworks.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1256105942 9591 172.30.248.35 (21 Oct 2009 06:19:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 21 Oct 2009 06:19:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1101624
Xref: news.mathworks.com comp.soft-sys.matlab:578865


Hi,

In simulink i have defined a array as follows using constant block:
a=[1 0 1 1 1 0 0 0 1];

Now i want to read the elements of array 'a' one by one, i mean at every sample time one element in ascending or descending order.

How do i do this ?? 

In otherwords if scope block is connected to the arrary, i suppose to see a binary signal of zeros and ones there.

Thanks !
Ashwini