Don't see delta-peak in ksdensity

1 view (last 30 days)
Sergey Makovkin
Sergey Makovkin on 13 Jul 2018
Hi.
I have a code:
omega_cur = 0;
omega_total = [];
for i = 1:36
omega_cur = 0.05;
omega_total = [omega_total omega_cur'];
end
start_density_base = 0;
d_density_base = 0.000001;
end_density_base = 0.15;
density_base = (start_density_base : d_density_base : end_density_base)';
[f] = ksdensity(omega_total, density_base);
f = f / max(f);
plot(density_base, f, 'r', 'LineWidth', 2);
xlim([0 0.15]);
ylim([0 1.01]);
Why I don't see the delta-peak at 0.05? What's wrong with ksdensity?

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!