MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

how to use ones(A)?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88211] how to use ones(A)?
  • From: second_444 <second_444 at 126.com>
  • Date: Mon, 28 Apr 2008 04:40:29 -0400 (EDT)

v=[1 2 3];a=ones(v)
the result is:
a(:,:,1) =

     1     1


a(:,:,2) =

     1     1


a(:,:,3) =

     1     1
why do it has the above three vectors?What do they mean?


  • Prev by Date: Re: Cropping a surface to a sphere
  • Next by Date: Re: Cropping a surface to a sphere
  • Previous by thread: RE: FEM contourplotter - conversion completed
  • Next by thread: Re: how to use ones(A)?