Clear Filters
Clear Filters

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

2 views (last 30 days)
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);

Accepted Answer

Isaac Osei Agyemang
Isaac Osei Agyemang on 12 Oct 2018

More Answers (0)

Categories

Find more on Tables in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!