I want to go go through the whole matric and want to remove vectors of specific indeices that have probability fitness less than a specific value.
조회 수: 1 (최근 30일)
이전 댓글 표시
I have found the probability of fitness of all my vectors in my matrix.But now i want to have my matrix back but with excluded vectors that have a probability fitness less than a specific value.
a=[1 1 1 0 0;1 1 0 1 0;1 1 0 0 1;................]
Now i my if the indices e.g 3 ,4 56, 57, 78 etc. have a value less that a specific value a want to remove those and want my matrix(a) population with all other vectors
댓글 수: 1
Dyuman Joshi
2022년 9월 12일
편집: Dyuman Joshi
2022년 9월 12일
Give an example of what the expected outcome is, with a (random) piece of data.
답변 (1개)
Image Analyst
2022년 9월 12일
Try this;
a = rand(1, 100); % Sample data - use your actual vector.
indexesToRemove = [3, 4, 56, 57, 78]; % or indexesToRemove = a < specificValue;
a(indexesToRemove) = [];
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!