Finding minimum values of individual double arrays in a cell array

1 回表示 (過去 30 日間)
Karthick Jonagadla
Karthick Jonagadla 2016 年 4 月 27 日
コメント済み: Karthick Jonagadla 2016 年 4 月 28 日
The following is in the cell array [9,10,11,12,13,14,15,16]; [13,14,15,16,17,18,19,20,21]
ie. [9,10,11,12,13,14,15,16] which is double is the first element of the cell array and [13,14,15,16,17,18,19,20,21] in the second element of the cell array
I am looking for a function where i can get the minimum value of the individual array. I know how to do it via for loops. I am looking for a better solution

採用された回答

KSSV
KSSV 2016 年 4 月 27 日
k = {[9,10,11,12,13,14,15,16]; [13,14,15,16,17,18,19,20,21]} ;
r = cellfun(@min,k)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by