making a list of ones



makelist(1,t,1,n)

On Sat, Oct 24, 2009 at 8:57 PM, Joshua Stults <joshua.stults at gmail.com>wrote:

>
> I'd like to be able to make a list of a certain length, say n, with
> each element the same, say 1. In matlab you'd do something like:
>
>  x = ones(n,1);
>
>
-- 
--------------------------------------------------------------------
Julio Cesar Aguilar Cabrera