MATLAB: Rayleighhchan object

Communications ToolboxMATLABurgent

Hello all,
I'm working with h=rayleighchan() object. Can anybody tell me how I can create a matrix of h with specific size? i.e. [h h …h] I've tried h*ones(2,5) but it's not working.

Best Answer

Try
repmat(h,2,5)
Also try
h25(1:2,1:5) = h;