필터 지우기
필터 지우기

how to assign our output in an empty matrix

조회 수: 1 (최근 30일)
Rutika Titre
Rutika Titre 2015년 12월 2일
답변: Walter Roberson 2015년 12월 2일
M working on a matrix of size 5X8 lets say its iimat. On this matrix I am applying one algorithm on each row of matrix iimat and get the ouput in rrow .I have defined mmat=[] as an empty matrix and here I have to assign each rows output in mmat. How to assign each rrow which is output of each iimat row to mmat.At the end mmat size will be 5X8 same as that of iimat

채택된 답변

Walter Roberson
Walter Roberson 2015년 12월 2일
for K = 1 : size(iimat,1)
one_row = iimat(K,:);
processed_row = sin(one_row); %for example
mmat(K,:) = processed_row;
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by