>> a = 1:100; % the sequence 1,2, ..., 100 >> b = 1:2:100; % the odd numbers between 1 and 100 >> for i = 1:10 > c(i) = prod(1:i); % shorthand for the factorial of i >> end % c is the sequence 1!, 2!, 3!,... 10! >> x = floor(2*rand(1,100)) % a sequence of 100 random coin tosses