Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
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);

Respuesta aceptada

Isaac Osei Agyemang
Isaac Osei Agyemang el 12 de Oct. de 2018

Más respuestas (0)

Categorías

Más información sobre Tables en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by