matrix - Matlab Repeat Value -


i matrix:

a = [2 3 4 6 7 8 9 1 2]; 

i need change matrix into:

b = [2 3 4 6 7 8 9 1 2;      2 3 4 6 7 8 9 1 2;      2 3 4 6 7 8 9 1 2] 

the output be:

b =   2     3     4     6     7     8     9     1     2  2     3     4     6     7     8     9     1     2  2     3     4     6     7     8     9     1     2 

thank much...

repmat , repelem used repeating copies of array. case, can use either of these as: repmat(a,3,1) or repelem(a,3,1)


Comments

Popular posts from this blog

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

python - Poor performance of db. inserts using django-mssql -

python - multiprocessing pool with map -