Besoin urgent d'aide en Matlab
Fermé
guyzolove
-
28 mars 2009 à 11:13
AmineKalaa Messages postés 87 Date d'inscription jeudi 26 mars 2009 Statut Membre Dernière intervention 10 janvier 2011 - 28 mars 2009 à 11:25
AmineKalaa Messages postés 87 Date d'inscription jeudi 26 mars 2009 Statut Membre Dernière intervention 10 janvier 2011 - 28 mars 2009 à 11:25
A voir également:
- Besoin urgent d'aide en Matlab
- Boucle for matlab ✓ - Forum Matlab
- Filtre moyenneur matlab - Forum Photo numérique
- Dérivée matlab - Forum Matlab
- Loi normale matlab - Forum Matlab
- Moindre carré matlab ✓ - Forum Matlab
1 réponse
AmineKalaa
Messages postés
87
Date d'inscription
jeudi 26 mars 2009
Statut
Membre
Dernière intervention
10 janvier 2011
7
28 mars 2009 à 11:25
28 mars 2009 à 11:25
essayez ce code (juste un idee):
[h,w]=size(m);
res=zeros(1,w); %res: matrice a une ligne et w colonne(27pour ton cas) =(0 0 0 0 0 0 0 0 0 0 0 0 0...)%
for i=1:h
for j=1:w
for k=j:w
res(1,j)=res(1,j)+m(i,k);
end
end
end
[h,w]=size(m);
res=zeros(1,w); %res: matrice a une ligne et w colonne(27pour ton cas) =(0 0 0 0 0 0 0 0 0 0 0 0 0...)%
for i=1:h
for j=1:w
for k=j:w
res(1,j)=res(1,j)+m(i,k);
end
end
end