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

Ho to convert a logical array to a numeric array in matlab?

9,124 views
Skip to first unread message

almal...@hotmail.com

unread,
Jan 3, 2010, 2:34:38 AM1/3/10
to
Hi everyone,

I want to convert a logical array to a numeric array in matlab
But I do not know how
Any help is appreciated

Amal

Matthew Whitaker

unread,
Jan 7, 2010, 12:17:20 PM1/7/10
to
almal...@hotmail.com wrote in message <bf759971-4e5e-4770...@e37g2000yqn.googlegroups.com>...

f = false(10,10); %create a logical 10x10 false array
isnumeric(f)

ans =

0

>> f = double(f); %convert to double
>> isnumeric(f)

ans =

1

doc double
doc single
doc uint16

0 new messages