Forum

Ask for help to thousands of professionals from different fields
Question
author_picture
|
| Germany
Standard Level
10 Points

Programmer sur Matlab

Salut,

Quel fonction permet de distribuer les nombres aléatoires à un vecteur(5,1) avec lambda egal à 5 (poisson distribution) ? 

Matlab
19.12.2017 12:37
author_picture
| Web Developer & Security Enthusiast
| Germany
Junior Level
154 Points

Salut, je ne suis pas un programmeur Matlab, mais j'ai jetté un petit coup d'oeil sur la documentation de Matlab et je suis tombé sur la fonction poissrnd (voici le lien https://de.mathworks.com/help/stats/poissrnd.html ).

 

You have already upvoted this answer !!! You have already downvoted this answer !!! You can not vote your own answer
author_picture
|
| Germany
Standard Level
17 Points

hello tu peux juste utiliser le poissonverteilt cad

p = poisspdf(X,lambda);    exemple:

 lambda=2
X =  1
>> p = poisspdf(X,lambda)
p =  0.27067

You have already upvoted this answer !!! You have already downvoted this answer !!! You can not vote your own answer
× You are not logged in. Please login or sign up for free to answer this post.

Your Answer

×

You gain:

  • +15 points when your answer is marked as accepted
  • +5 points when your answer is voted up

You lose:

  • -2 points when your answer is voted down
forum_icon Related Topics