how Calculate the number of object(submatrix) in matlab?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
ahmad saleh
le 21 Nov 2015
Modifié(e) : ahmad saleh
le 21 Nov 2015
number of object =5
a=[0 0 0 0 0 0 0 0 0 0 0;0 0 1 1 1 1 0 1 0 1 1;0 0 1 0 1 0 1 1 1 0 0;0 1 1 1 1 0 1 0 1 0 0;1 0 1 0 1 0 1 1 1 0 0;1 0 1 1 1 1 0 0 0 0 0;0 0 0 0 0 0 1 1 1 0 0;0 1 1 1 1 0 1 0 1 0 0;0 0 1 0 1 0 1 1 1 0 0;0 0 1 1 1 0 0 0 0 0 0;0 1 0 0 0 0 0 0 0 0 0];
b=[1 1 1;1 0 1;1 1 1];
Réponse acceptée
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!