필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
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);

채택된 답변

Isaac Osei Agyemang
Isaac Osei Agyemang 2018년 10월 12일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by