i want to take each row in matrix

3 vues (au cours des 30 derniers jours)
Shehab Tarek
Shehab Tarek le 18 Mai 2020
Réponse apportée : Rik le 18 Mai 2020
i have matrix 7*3
i want to take 001 in the first
011and in the second

Réponse acceptée

Rik
Rik le 18 Mai 2020
Trivial with the color operator:
clc
data=[0 0 ;0 0 1;0 0 1;1 1 1;0 1 1;1 0 1;1 1 1];
for n=1:size(data,1)
tmp=data(n,:);
%do something useful with tmp
disp(tmp)
end

Plus de réponses (0)

Catégories

En savoir plus sur Logical 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