From: almalki_98 on 3 Jan 2010 02:34 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 7 Jan 2010 12:17 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
|
Pages: 1 Prev: Total Variation Blind deconvolution Next: How to use parfor loop for Jacobi Iteration? |