Fun with matlab

I want to just generate a array like this:

a = [1 1 2 2 3 3 4 4 5 5 6 6 ....]
%% or something like this
a = [1 1 1 .. ktimes 2 2 2 ... ktimes .....]

Can this be done by a single line of code in MATLAB ? I believe several answers exist. No loops please.


Download fun.with.matlab.zip
Direct Link


Download


Download fun.with.matlab.zip
Mediafire


Download


Download fun.with.matlab.zip
KeepFile


Download

Both comments and pings are currently closed.

Comments are closed.