Effacer les filtres
Effacer les filtres

Adding random numbers to each number in a column of a table.

2 vues (au cours des 30 derniers jours)
Hello community, I want to add random numbers to each element within the column of a table. this's is what I've been doing, but my approach adds same random number to all elements in that spefic column.
NewEdge(:,2) = NewEdge(:,2)+ randi(3);

Réponse acceptée

Isaac Osei Agyemang
Isaac Osei Agyemang le 12 Oct 2018

Plus de réponses (0)

Catégories

En savoir plus sur Tables dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by