help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cell


From: James Sherman Jr.
Subject: Re: cell
Date: Sat, 6 Jun 2009 14:27:55 -0400

Well, it still calls double 10 times, but you could do something like:

B = cellfun(@double, A);

On Sat, Jun 6, 2009 at 2:21 PM, Carlo Rossi <address@hidden> wrote:

right, unfortunately I load it by file and they aren't;
I just wanted avoid to call 10 times

> A{1} = double([10 10; 20 20; 30 30; ]);

do you understand?


--- Sab 6/6/09, James Sherman Jr. <address@hidden> ha scritto:

> Da: James Sherman Jr. <address@hidden>
> Oggetto: Re: cell
> A: "Carlo Rossi" <address@hidden>
> Cc: "Octave-ML" <address@hidden>
> Data: Sabato 6 giugno 2009, 20:17
> I'm not clear what you want the
> call
>
> double(A)
>
> to do.  All the values you entered are already of type
> double by default, I believe.  If for some reason they
> aren't, you could just replace your assignment line
> with:
>
>
> A{1} = double([10 10; 20 20; 30 30; ]);
>
> On Sat, Jun 6, 2009 at 1:34 PM,
> Carlo Rossi <address@hidden>
> wrote:
>
>
>
> hello,
>
>
>
>  I have a cell: A = cell (10,1);
>
> A{1} = [10 10; 20 20; 30 30; ];
>
> I filled it in this way for ten times;
>
>
>
> now I want call double(A) but I can't because it's
> a cell.
>
> Is there a way to do it without call
>
> double( A{1} );
>
> double( A{2} );
>
> .........
>
>
>
> thanks,
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
>
> Help-octave mailing list
>
> address@hidden
>
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>
>
>
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]