Re: how to use ones(A)?

*To*: mathgroup at smc.vnet.net*Subject*: [mg88230] Re: how to use ones(A)?*From*: dh <dh at metrohm.ch>*Date*: Tue, 29 Apr 2008 06:48:08 -0400 (EDT)*References*: <fv42kk$603$1@smc.vnet.net>

Hi, the syntax is all wrong. What should [..] be? Perhaps you mean {1,2,3} What is ones? Function arguments are [..] not (..) Daniel second_444 wrote: > 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? >