find

Ben Abbott bpabbott at mac.com
Sat Jun 6 09:27:49 CDT 2009


On Jun 6, 2009, at 10:20 AM, Carlo Rossi wrote:

>
> Hello folk,
>
> how can I conver the values of a cell to double?
>
> A = cell(10, 1);
>
> A = double(A); % this gets an error
>
> thanks,
>

Does cell2mat do what you're looking for?

A = cell (10, 1);
A(:) = pi;
cell2mat (A)
ans =

    3.1416
    3.1416
    3.1416
    3.1416
    3.1416
    3.1416
    3.1416
    3.1416
    3.1416
    3.1416

Ben


More information about the Help-octave mailing list