I want to add random numbers to each element within the column of a table. This is is what I've been doing, but my approach adds same random number to all elements in that specific column.
NewEdge(:,2) = NewEdge(:,2)+ randi(3);
How can I add a different random number to each element?
Aucun commentaire:
Enregistrer un commentaire