Is it possible to collect length of filed values without a for cycle?

Is it possible to fill the size vector fithout a for cycle?
for i = 1:length(params)
size(i) = length(params(i).values);
end

1 件のコメント

KSSV
KSSV 2018 年 10 月 16 日
Have a look on structfun

回答 (0 件)

この質問は閉じられています。

タグ

質問済み:

2018 年 10 月 16 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by