필터 지우기
필터 지우기

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

조회 수: 2 (최근 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 CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by