how to put only one element randomly in row of matrix
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Meriem Ben Kalia
il 11 Ago 2020
Commentato: Meriem Ben Kalia
il 11 Ago 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 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!