How to apply function with arguments to every cell in cell array

4 ビュー (過去 30 日間)
lil brain
lil brain 2022 年 2 月 28 日
コメント済み: lil brain 2022 年 2 月 28 日
Hi,
I have a function called dfaedit which I want to run over each individual cell in a cell array called baskets_xyz_h_ref.
However, I am unsure how to apply a function to each cell if the function has multiple arguments..
How would I do this?
Thank you!

採用された回答

David Hill
David Hill 2022 年 2 月 28 日
for k=1:length(baskets_xyz_h_ref)
H(k)=dfaedit(baskets_xyz_h_ref{k},1,1,1);
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by