Filter löschen
Filter löschen

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 Ansicht (letzte 30 Tage)
How Do I find out a specific weight number in a row of matrix?
  1 Kommentar
the cyclist
the cyclist am 17 Mai 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"?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Sean de Wolski
Sean de Wolski am 17 Mai 2016
sum(A,2) == 1
?

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by