Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
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);

Akzeptierte Antwort

Isaac Osei Agyemang
Isaac Osei Agyemang am 12 Okt. 2018

Weitere Antworten (0)

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by