From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Logical indexing is not yet supported in Matlab Embedded??
Date: Sat, 27 Feb 2010 01:21:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 7
Message-ID: <hm9s1v$6gl$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1267233663 6677 (27 Feb 2010 01:21:03 GMT)
NNTP-Posting-Date: Sat, 27 Feb 2010 01:21:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2240567
Xref: comp.soft-sys.matlab:612147

I am writing a simple prog to get rid of <0 elements of array, see below 
a = [u1, u2, u3, u4];
b = a(:)>= 0;
c = a(b);

however matlab embedded doesnt allow dynamic indexing, any help to get around this??  have to generate code and implement on a real time device. thanks