hi,,lets say I have a matrix,A =[1 0 1 0 0; 10 1 0; 0 0 1 0; 0 0 0 1]. How do I find out that row 3 and 4 has weight one??

1 view (last 30 days)
How Do I find out a specific weight number in a row of matrix?
  1 Comment
the cyclist
the cyclist on 17 May 2016
I don't understand the question. Specifically,
  • You sort of put the question in the title, so it is badly formatted and impossible to interpret
  • The matrix A doesn't seem to be a valid matrix at all
  • What do you mean by "weight number"?

Sign in to comment.

Accepted Answer

Sean de Wolski
Sean de Wolski on 17 May 2016
sum(A,2) == 1
?

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices 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!