Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Simple simulink problem
Date: Wed, 21 Oct 2009 12:39:29 +0100
Organization: The MathWorks, Inc.
Lines: 28
Message-ID: <hbmrth$md$1@fred.mathworks.com>
References: <hbm94m$9bn$1@fred.mathworks.com>
NNTP-Posting-Host: uk-mieegea.mathworks.co.uk
X-Trace: fred.mathworks.com 1256125169 717 172.16.27.185 (21 Oct 2009 11:39:29 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 21 Oct 2009 11:39:29 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:578943



"Ashwini Deshpande" <vd.ashwini@mathworks.com> wrote in message 
news:hbm94m$9bn$1@fred.mathworks.com...
> 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
>

Don't use the constant block, use the repeating sequence block:
http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/repeatingsequence.html

HTH,

Arnaud