rician distribution in matlab

main.m
% Rician Distribution Parameters
s = 1; % Noncentrality parameter
sigma = 2; % Scale parameter

% Generate random numbers following Rician distribution
rng(42); % for reproducibility
rician_data = s + sigma * randn(1,1000) + sigma * 1i * randn(1,1000);

% Plot the histogram of the generated data
histogram(abs(rician_data), 50, 'Normalization', 'pdf');
xlabel('x');
ylabel('Probability Density');
title('Rician Distribution');
428 chars
14 lines

related categories

gistlibby LogSnag