MATLAB Answers

## generating a weibull channel on Matlab

Asked by raj0689

### raj0689 (view profile)

on 27 Nov 2011
Accepted Answer by bym

### bym (view profile)

Hi,

I am new here.. I just have a doubt on how to create a Weibull channel on Matlab. For Rayleigh, I know it can be given as: h = 1/sqrt(2)*[randn(nRx(jj),N) + j*randn(nRx(jj),N)] where, nRx is the length i assumed and N is the number of bits in this case.

But how can I generate Weibull channel in the same manner ?

Please help me in this regards. That will be much appreciated.

Thanks and regards,

Raj.

## Products

No products are associated with this question.

## 1 Answer

Answer by bym

### bym (view profile)

on 27 Nov 2011
Accepted answer

```hw = lamda.*(-log(rand(nRx(jj),N)).^(1/beta))
```

where lamda & beta are your Weibull parameters. BTW you can generate your Rayleigh channel by using beta = 2

raj0689

### raj0689 (view profile)

on 27 Nov 2011

Thanks a lot.. :)
now i can proceed with my project with your help.. :)

yogesh chinnaraja sundararajan

### yogesh chinnaraja sundararajan (view profile)

on 4 Apr 2013

can any one help me what values can be substituted for Weibull parameters lamda and beta in the above equation hw= lamda.*(-log(rand(nRx(jj),N)).^(1/beta))

#### Join the 15-year community celebration.

Play games and win prizes!

Learn more

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

### Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

### MATLAB Academy

New to MATLAB?

Learn MATLAB today!