Community Profile

photo

ahmad


Last seen: Today Active since 2022

Statistics

  • Thankful Level 2

View badges

Content Feed

View by

Question


sum a column per row with loops
let say i have a 10x10 matrix of ones 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

17 days ago | 1 answer | 0

1

answer

Question


How to replace duplicate element to 0 in matrix for every rows
I need to replace the repeated elements in column of a matrix as 0's, If my matrix is like this means. Input = 1 1 1 2 2 2 3 ...

3 months ago | 1 answer | 0

1

answer