Path: news.mathworks.com!not-for-mail
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$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1267233663 6677 172.30.248.37 (27 Feb 2010 01:21:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 27 Feb 2010 01:21:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2240567
Xref: news.mathworks.com comp.soft-sys.matlab:612147

Hi,
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