Inserting a double to a cell
9 ビュー (過去 30 日間)
古いコメントを表示
Hi all,
I try to find minimum value in two different colums and then i want to assign the smallest one to a cell. How can i search this minimum value in two different column? How can i insert a double to cell?
Thx.
0 件のコメント
採用された回答
James Tursa
2023 年 6 月 2 日
E.g.,
x = randi(100,10,10) % sample data
columns = [4,7]; % columns to check
minx = min(x(:,columns)) % minimum of the two columns
c{1} = min(minx) % assign smallest one to cell element
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Simulink Environment Customization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!