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.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 5 Sep. 2011

0 Stimmen

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

2 Kommentare

Bahareh
Bahareh am 6 Sep. 2011
Thanks Mr. Roberson.
I would be very grateful if you could please let me know how I can do mathematical operations on this object?
For example if would like to raise the power of h to 2? Is there any way to do it?
Thank you in advance.
Walter Roberson
Walter Roberson am 6 Sep. 2011
Sorry, I do not have that toolbox, so I am unable to experiment with it.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by