how to save part of data in a table/matrix into another table and count the number of rows at certain columns
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a table with many columns and rows in a table, e.g., column 1, 2, 3, 4, 5, 6,... every three columns are one group, (1, 2, 3), (4, 5, 6),...
First, I need to save the rows in those groups meeting certain criteria into another table. For example, save the rows of column 1, 2 and 3 with column3 value larger than 10, the rows of columns 4, 5 and 6 with column6 value larger than 10, ... in new columns 1, 2, 3, 4, 5, 6...
Second, now column groups (1,2,3), (4,5,6), ... may have different number of rows. I need to count the numer of the rows in the first three columns and save them at the end of the first three columns, ans so for the next three columns....
How can I do that? Thank you.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!