i have the store of sum and want to know the index

조회 수: 1 (최근 30일)
Shehab Tarek
Shehab Tarek 2020년 5월 19일
답변: Ameer Hamza 2020년 5월 20일
i have the store_sum=[ 0.18,0.27,0.43,0.57];
and i want to know the index
starting from colum colum 2 in this matrix

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 5월 20일
M % name of your matrix
store_sum=[ 0.18,0.27,0.43,0.57];
[~, idx] = ismembertol(store_sum, M(:,2));
idx is index of elements of store_sum in the 2nd column of M.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by