From: almalki_98 on
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
From: Matthew Whitaker on
almalki_98(a)hotmail.com wrote in message <bf759971-4e5e-4770-bee1-ed91f71598b2(a)e37g2000yqn.googlegroups.com>...
> 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

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