フィルターのクリア

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 Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by