How to create a specific Matrix
Show older comments
Hi !
Can anyone help me in builting this specific matrix? I do not know if the "randi" function is the exact one.
Thank you in advance for your help!

Answers (2)
KSSV
on 5 Mar 2020
c = [1 1 2 2 3 3]' ;
iwant = repmat(l',1,4) ;
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!