필터 지우기
필터 지우기

i want to take each row in matrix

조회 수: 1 (최근 30일)
Shehab Tarek
Shehab Tarek 2020년 5월 18일
답변: Rik 2020년 5월 18일
i have matrix 7*3
i want to take 001 in the first
011and in the second

채택된 답변

Rik
Rik 2020년 5월 18일
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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by