Index a cell and use as input to a function

I have 2 cells W0=1x4 cell and H0=1x4 cell
in these cells i have
2x100, 4x100, 6x100, 8x100 double % matrices
How can i load these individual matrices and use them as inputs to a function via a loop
[~,~,RRE_NMF,T_NMF]=NMF(X,Q, W0,H0,Tmax);
I want to input everycell matrix in the cells into the position of w0 and H0 and iterate for all

4 件のコメント

Walter Roberson
Walter Roberson 2019 年 1 月 10 日
? Something like
for K = 1 : 4
[~,~,RRE_NMF,T_NMF] = NMF(X, Q, W0{K}, H0{K}, Tmax);
end
fadams18
fadams18 2019 年 1 月 10 日
Lmao that was easy. it works. thanks Walter.
Stephen23
Stephen23 2019 年 1 月 10 日
fadams18
fadams18 2019 年 1 月 10 日
@Stephen. Thanks to u too. U really helped me today

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

質問済み:

2019 年 1 月 10 日

コメント済み:

2019 年 1 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by