How do I write a matlab function for the following expression?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Giuseppe Maria Perrucci
el 26 de Oct. de 2021
Respondida: Pranjal Kaura
el 29 de Oct. de 2021
Evaluate f (x = 1) when μ = 0, σ = 2.
0 comentarios
Respuestas (1)
Pranjal Kaura
el 29 de Oct. de 2021
Hey
Here is a code snippet for the required function
function f_x = PDF(x, u, sigma)
f_x = exp(-(x - u).^2/(2*sigma.^2))/(sigma*sqrt(2*pi));
end
Hope this helps!
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!