Minimum value of cell array

24 ビュー (過去 30 日間)
Jaanu
Jaanu 2011 年 9 月 18 日
コメント済み: Mehri Mehrnia 2022 年 6 月 27 日
Is there any way to find the minimum value of a cell array?
This is my cell array,
d(:)=[] [1.9135e+004] [1.9148e+004] [1.9180e+004] [1.9127e+004] [1.9133e+004] [1.9161e+004] [1.9149e+004] [1.9146e+004] [1.9137e+004]
Can i find the minimum of this cell array?Plz help me to solve this problem.

採用された回答

TAB
TAB 2011 年 9 月 18 日
I don't think the declaration of cell you have given above is correct.
Even though if content of your cell array d have the same data type you can find minimum as
MinVal=min(cell2mat(d));
  3 件のコメント
Andrei Bobrov
Andrei Bobrov 2011 年 9 月 18 日
min([d{:}])
Mehri Mehrnia
Mehri Mehrnia 2022 年 6 月 27 日
if cell2mat doesn't work for me, what should I do?
The reason that it doesn't work is cell arrays are not in same size!

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by