Bonjour tout le monde,
je suis débutant en matlab et je cherche votre aide les amis
En fait, j'ai un algorithme et je dois le programmer avec matlab, j'ai pas compris comment faire. Voici l'algorithme
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%Require: Fix the number of clusters C, 
%the degree of fuzziness m > 1, 
%parameters in table 1, 
%initialize randomly position (c(0) ij ) and velocity of each particle. 
Calculate the filtered image ¯ X of the image X 
Calculate the membership degrees (u(0) ij ) by equation (9) using the Euclidian distance. 
for k = 1 to nbmaxiter do 
    for each particle do 
        Calculate the Mahalanobis distance using U(k−1) in equation (10), (11) and (12) 
        Calculate U(k) using equation (9) 
        Calculate the fitness function based on the Mahalanobis distance, using equation (7) 
        Update the individual best solution pbest and find the global best solution gbest 
        Calculate the velocity and position of particle using equations (3) and (4) 
    end for 
    if condition (5) then 
        Go to 15 
    end if 
end for 
return ci the centers of clusters (positions of particles) and the membership degrees uij
Les équations numérotés sont à programmer aussi. Merci de me donner une idée et de m'aider