how to put only one element randomly in row of matrix
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Meriem Ben Kalia
le 11 Août 2020
Commenté : Meriem Ben Kalia
le 11 Août 2020
Hello,
Can anyone help me please, I didn't a solution
I'd like to put only one element of row to 1 'randomly' and the other putted in 0
Exemple I have A= zeros (4,3) I like to get A= [0 1 0; 1 0 0; 0 0 1; 1 0 0]
0 commentaires
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!