Effacer les filtres
Effacer les filtres

How to extract information from matrix?

2 vues (au cours des 30 derniers jours)
Firas Al-Kharabsheh
Firas Al-Kharabsheh le 25 Avr 2016
Modifié(e) : dpb le 25 Avr 2016
If i have this matrix
B = [ 1 1 0 1
0 0 0 0
0 1 0 0
0 1 0 0 ]
how i can in some way to extract these information
  • 1 1 0 1 , 1st row
  • 1 0 1 1 , second column

Réponses (1)

dpb
dpb le 25 Avr 2016
Modifié(e) : dpb le 25 Avr 2016
R=B(1,:);
C=B(:,2);
Read and work through the "Getting Started" tutorial on Matlab basics...or more specifically, read
doc colon

Catégories

En savoir plus sur Matrices and Arrays 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