how to assign our output in an empty matrix

1 次查看(过去 30 天)
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