Inserting a double to a cell
조회 수: 4 (최근 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에서 Get Started with Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!