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

java - SSE Emitter : Manage timeouts and complete() -

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

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -