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