Salut a tous ,
Je suis novice en matlab et je voudrais que vous m'aidiez.
je veux supprimer la fonction prédéfini geornd et remplacer par l'algorithme complet de cette fonction
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 clear all map(1,:) = [rand rand rand]; colormap(map) theta=.13; nb=500; R = geornd(theta,nb,1); hist(R) x=0:1:max(R); p1=2*nb*geopdf(x,theta); hold on plot(x,p1,'*k'); box off hold off
Partager