Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
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);

Risposta accettata

Isaac Osei Agyemang
Isaac Osei Agyemang il 12 Ott 2018

Più risposte (0)

Categorie

Scopri di più su Tables in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by