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 vue (au cours des 30 derniers jours)
How Do I find out a specific weight number in a row of matrix?
  1 commentaire
the cyclist
the cyclist le 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"?

Connectez-vous pour commenter.

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by