フィルターのクリア

how to craet the same function but without loop

1 回表示 (過去 30 日間)
amjad hammad
amjad hammad 2021 年 12 月 4 日
コメント済み: amjad hammad 2021 年 12 月 4 日
hi can anyone tell me how i can change this uction to not loop with same result
function Xne = decode( H, Zn0, nIter, verbose )
[ M, N ] = size( H ) ;
ZMN = zeros( M, N ) ;
LMN = zeros( M, N ) ;
for m = 1 : M
ZMN(m,:) = Zn0(:); %must be same like this but without using any loops
end

回答 (1 件)

Voss
Voss 2021 年 12 月 4 日
Here is one way:
function Xne = decode( H, Zn0, nIter, verbose )
[ M, N ] = size( H ) ;
LMN = zeros( M, N ) ;
ZMN = repmat(Zn0(:).',M,1);

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by